gucci-on-fleek / lockdown-browser

Run the ”Respondus Lockdown Browser“ in the ”Windows Sandbox“
Other
132 stars 25 forks source link

Error after trying to launch #15

Open madpancamo opened 1 year ago

madpancamo commented 1 year ago

cd C:\Users\WDAGUtilityAccount\Desktop\runtime_directory\ .\withdll.exe /d:GetSystemMetrics-Hook.dll "C:\Program Files (x86)\Respondus\LockDown Browser Lab OEM\LockDownBrowserLabOEM.exe"

Errors I get while trying to open it like this: 1

and when I try to launch it through the link I got from the university, I get this error: 2

gucci-on-fleek commented 1 year ago

LockDownBrowserLabOEM.exe

That's the version of the Browser designed to use in school computer labs. You should use the student version, which is named C:\Program Files (x86)\Respondus\LockDown Browser\LockDownBrowser.exe.

If you can't get access to a student version, you can try changing

https://github.com/gucci-on-fleek/lockdown-browser/blob/7248e2999c70bd913345483873cfc8e623bc99a0/runtime_directory/sandbox_run.ps1#L14

to

$lockdown_runtime = "C:\Program Files (x86)\Respondus\LockDown Browser Lab OEM\LockDownBrowserLabOEM.exe"

although I haven't tested this.

antonionappo commented 1 year ago

i have the same issue and i have modified line 14 in sandbox_run.ps1 with this:

$lockdown_runtime = "C:\Program Files (x86)\Respondus\LockDown Browser OEM\LockDownBrowserOEM.exe"

gucci-on-fleek commented 1 year ago

@antonionappo

Is this exactly what you typed?

$lockdown_runtime = "C:\Program Files (x86)\Respondus\LockDown Browser OEM\LockDownBrowserOEM.exe"

There, you have LockDownBrowserOEM.exe. If that is the name of the Browser executable on your system, then that would be correct. However, the initial poster of this issue had

$lockdown_runtime = "C:\Program Files (x86)\Respondus\LockDown Browser Lab OEM\LockDownBrowserLabOEM.exe"

which uses LockDownBrowserLabOEM.exe instead. Perhaps both of these names exist in the wild, but I suspect that one of you has a typo somewhere.

antonionappo commented 1 year ago

I have solved the problems.

First Problem: path of execututable is different of your file: I have changed the line 14 with this: $lockdown_runtime = "C:\Program Files (x86)\Respondus\LockDown Browser OEM\LockDownBrowserOEM.exe".

Second problem: exam url The exam url have link like this : "ldb1:ug:0:%5BJwQN......" therefore the line 40 is wrong for me. i have changed line 40 with this:

Set-ItemProperty -Path "HKCR:\ldb1\shell\open\command" -Name "(Default)" -Value ('"' + $PSScriptRoot + '\withdll.exe" "/d:' + $PSScriptRoot + '\GetSystemMetrics-Hook.dll" ' + $lockdown_runtime + ' "%1"')

but this not work with script, i think that the key is subscribed or does not exist yet at script execution. I have changed this registry key manually with this and work well.

"C:\Users\WDAGUtilityAccount\Desktop\runtime_directory\withdll.exe" "/d:C:\Users\WDAGUtilityAccount\Desktop\runtime_directory\GetSystemMetrics-Hook.dll" "C:\Program Files (x86)\Respondus\LockDown Browser OEM\LockDownBrowserOEM.exe" "%1"

can you help me?

giandinic commented 12 months ago

hi @antonionappo,

don't you have this problem?

Screenshot 2023-11-29 111145

I modified the script, but on sandbox I don't see a solution to this problem, I also tried to do some tests in vmware workstation

giandinic commented 11 months ago

@madpancamo did you solve the problem?

antonionappo commented 11 months ago

hi @antonionappo,

don't you have this problem?

Screenshot 2023-11-29 111145

I modified the script, but on sandbox I don't see a solution to this problem, I also tried to do some tests in vmware workstation

@giandinic Hi, the solution work in my sandbox. you have executed all step correctly ?

giandinic commented 11 months ago

Hi, I think I have executed everything correnta, there is only one point in the script that is not clear to me:

& $lockdown_installer /x ""$lockdown_extract_dir"" while (!(Test-Path $lockdown_extract_dir\id.txt)) { sleep 0.2 } sleep 1 kill -Name Lockdown

I know that the /x is for uninstall?!?! but when it processes it, the graphical installation starts.

I commented out this part and the script executes correctly.

my setup is LockDownBrowserOEMSetup.exe.

what is wrong?

Translated with DeepL.com (free version)

giandinic commented 11 months ago

I did the manual exe extraction and I have this:

image

when I then go to run the script it generates this log:

image

antonionappo commented 11 months ago

Can you show me the content of the runtime_directory? can you show me the content of 'sandbox_run.ps1' file ?

giandinic commented 11 months ago

image

in the temp folder are the Extraction files. I have an idea that the extraction .exe is wrong

image

the error is in line 28?!?!

can't extract the file

giandinic commented 11 months ago

I have an update:

I did a test using the executable "LockDownBrowser.exe" and the extraction and then installation works without errors.

I need "LockDownBrowserOEMSetup.exe" for my purpose.

which executable did you use? @antonionappo

gucci-on-fleek commented 9 months ago

@antonionappo

First Problem: path of execututable is different of your file: I have changed the line 14 with this: $lockdown_runtime = "C:\Program Files (x86)\Respondus\LockDown Browser OEM\LockDownBrowserOEM.exe".

Glad to hear that that worked. Since LockDownBrowserOEM.exe is much less common than LockDownBrowser.exe, I'm not planning on modifying the script, but I'll let other people know to make that change if they have the same problem.

Second problem: exam url The exam url have link like this : "ldb1:ug:0:%5BJwQN......" therefore the line 40 is wrong for me. i have changed line 40 with this:

Set-ItemProperty -Path "HKCR:\ldb1\shell\open\command" -Name "(Default)" -Value ('"' + $PSScriptRoot + '\withdll.exe" "/d:' + $PSScriptRoot + '\GetSystemMetrics-Hook.dll" ' + $lockdown_runtime + ' "%1"')

but this not work with script, i think that the key is subscribed or does not exist yet at script execution. I have changed this registry key manually with this and work well.

That command appears correct to me, so I'm also not sure why that's not working? At least changing it manually works properly.

@giandinic

Hi, I think I have executed everything correnta, there is only one point in the script that is not clear to me:

& $lockdown_installer /x ""$lockdown_extract_dir"" while (!(Test-Path $lockdown_extract_dir\id.txt)) { sleep 0.2 } sleep 1 kill -Name Lockdown

I know that the /x is for uninstall?!?! but when it processes it, the graphical installation starts.

/x should be for eXtract, although it may be different for your version.

I commented out this part and the script executes correctly.

my setup is LockDownBrowserOEMSetup.exe.

what is wrong?

Maybe your installer is “preextracted”, so you don't need to run the initial extraction step?

@giandinic

I have an update:

I did a test using the executable "LockDownBrowser.exe" and the extraction and then installation works without errors.

I need "LockDownBrowserOEMSetup.exe" for my purpose.

If the automated script isn't working, then you can start the Sandbox and manually install the Browser by double-clicking the installer and clicking through the wizard. The important part is that once you've installed the Browser, do not run it by double-clicking its icon. Instead, run it from the command-line as instructed on the main page.

amv01 commented 8 months ago

hi @antonionappo, don't you have this problem? Screenshot 2023-11-29 111145 I modified the script, but on sandbox I don't see a solution to this problem, I also tried to do some tests in vmware workstation

@giandinic Hi, the solution work in my sandbox. you have executed all step correctly ?

Hello, Can you please tell how you solve it??? Thanks

antonionappo commented 8 months ago

hi @antonionappo, don't you have this problem? Screenshot 2023-11-29 111145 I modified the script, but on sandbox I don't see a solution to this problem, I also tried to do some tests in vmware workstation

@giandinic Hi, the solution work in my sandbox. you have executed all step correctly ?

Hello, Can you please tell how you solve it??? Thanks

What is your problem ?

Martin0131 commented 8 months ago

Hello, can you help me? What should I do, from the first step to the last step, knowing that I have LockDownBrowserOEM.exe?

amv01 commented 8 months ago

hi @antonionappo, don't you have this problem? Screenshot 2023-11-29 111145 I modified the script, but on sandbox I don't see a solution to this problem, I also tried to do some tests in vmware workstation

@giandinic Hi, the solution work in my sandbox. you have executed all step correctly ?

Hello, Can you please tell how you solve it??? Thanks

What is your problem ?

I still have this error:

errore ldb

How can I solve it?

gucci-on-fleek commented 7 months ago

@Martin0131

Hello, can you help me? What should I do, from the first step to the last step, knowing that I have LockDownBrowserOEM.exe?

See #63.

@amv01

I still have this error:

[image]

How can I solve it?

From the main instructions:

You get a “Terminal Services” error message

If the Lockdown Browser fails to launch, do not double-click the file on the VM's desktop. Instead, open a PowerShell prompt inside the VM and run:

cd C:\Users\WDAGUtilityAccount\Desktop\runtime_directory\
.\withdll.exe /d:GetSystemMetrics-Hook.dll "C:\Program Files (x86)\Respondus\LockDown Browser\LockDownBrowser.exe"

Of course, this is usually symptomatic of another issue, so please make sure that you have followed all the earlier instructions.

But I'd check #65 and https://github.com/gucci-on-fleek/lockdown-browser/discussions/53#discussioncomment-8909229 before trying this since many people have been having issues lately.