Answer the question
In order to leave comments, you need to log in
Installer for the program - three sequentially launched files?
It requires one .exe to run the sequence:
start
file1.exe parameter1
file2.exe
file1.exe parameter2
end Tell me
, please, which installer can do this? For a non-programmer to understand.
Thank you.
Answer the question
In order to leave comments, you need to log in
Any installer can do this.
Try InnoSetup , it's a free and fairly powerful installer with a user-friendly and intuitive interface.
I think the simplest option for a non-programmer is
1. Create a bat/cmd file with any name, place it in a folder with your files and write inside it:
file1.exe parameter1
file2.exe
file1.exe parameter2
2. Pack all files via Winrar with the option "create SFX archive" (self-extracting archive). Then "Advanced/SFX Options". Run after unpacking: "file.bat" or "file.cmd".
The only inconvenience of this solution is that "installation" will only be possible in a pre-specified or current folder, for some reason if you specify a file to run, then there is no folder selection in SFX.
Artem, I can’t find an example on the Internet.
What is the correct way to register such case changes in InnoSetup?
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ / d xxx.xxx.xxx.xxx:xxxx /f
And then after the installer has finished file2.exe, I need to return these keys to their native values:
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f
How to do it? Should it be something like this? But how to correctly register registry values?
[Registry]
Root: HKLM; Subkey: "Software\Microsoft\Windows\CurrentVersion\Internet Settings"; ValueType: string; ValueName: "ProxyEnable"; ValueData: 1
Root: HKLM; Subkey: "Software\Microsoft\Windows\CurrentVersion\Internet Settings"; ValueType: string; ValueName: "ProxyServer"; ValueData: "xxx.xxx.xxx.xxx:xxxx"
[Run]
;Filename: "file.exe";
[Registry]
Root: HKLM; Subkey: "Software\Microsoft\Windows\CurrentVersion\Internet Settings"; ValueType: string; ValueName: "ProxyEnable"; ValueData: 0
Root: HKLM; Subkey: "Software\Microsoft\Windows\CurrentVersion\Internet Settings"; ValueType: string; ValueName: "ProxyServer"; need to delete value
Thank you.
launching different files through one installer may be suspicious of antiviruses, etc.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question