I'm writting a simple Inno Setup Script for my application. I did all the stuff I wanted but I'm blocking on something.
My app has two mode, Computer and Client that the user chooses at the start of the installation. If Client mode is picked, the application must start with windows. Also my app can be installed on both Windows version (32 and 64Bits), so not the same path for the registry key.
To make it start with windows, I added this at the end of my Inno setup script :
[Registry]
Check: IsWin64; Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; Permissions: users-full; ValueName: "MyApp"; ValueData: "{app}\AutoexecX86.cmd";
Check: Not IsWin64; Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; Permissions: users-full; ValueName: "MyApp"; ValueData: "{app}\Autoexec.cmd";
How can I add the condition that my app start only with the condition "Client mode is choosen". (ClientRadioButton.Checked
)