Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows installer hangs if Batch files are set to open in a specific application (such as a text editor) #183

Open
xenago opened this issue Oct 28, 2024 · 0 comments

Comments

@xenago
Copy link

xenago commented Oct 28, 2024

With batch files set at the system level to open by default in another application (such as Notepad++), the installer will hang. Instead of running the file AppData\Local\Temp\rad8A5F4, it opened it:

image

At this point, the install process was hung and I aborted it (presumably, a user could also run the script manually and then close whatever application was inadvertently opened, but I didn't test that).

To temporarily get around this problem, I ran this command to reset the file association, and then reran the installer successfully:

ASSOC .bat=batfile

Maybe this can be avoided by preceding the command running the batch file with call or cmd to ensure it is treated as a script rather than opening whatever the default application is for .bat extension? I think it might be this line that runs it:

DoCmd = objShell.Run(""""&objTempFolder.Path & "\" & strBatchFile & """", 0, True)

@xenago xenago changed the title Installer hangs if Batch files are set to open in a specific application (such as a text editor) Windows installer hangs if Batch files are set to open in a specific application (such as a text editor) Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant