Hello,
I am a beginner with Inno Setup. I used the Wizard to create an .iss file based on an installer developed with National Instruments software. The reason I had to do this is that the NI installer doesn't overwrite a file in a specific folder (outside the Program Files (x86) folder) if it already exists.
To do this, I added to the script created by the Wizard the following line:
Source: [path of the file to be overwritten]; DestDir: [destination folder]; Flags: ignoreversionand I've checked that when I run the executable compiled from the script, the file is actually overwritten. The problem is that the actual installation fails.
If I launch the executable created by Inno Setup without administrator privileges, the procedure appears to be successful, but when I click Finish to launch the application I get an error popup.
Unable to execute file:
C:\Program Files (x86)\[Destination Folder]\install.exe
CreateProcess failed; code 740.If I choose Run as administrator, also in this case the procedure seems to be successful, but when I click on Finish to launch the application I get another error popup.
Fatal Error. Unable to load a resource DLLHere are the Details:
ConfigInfo.cpp(2501): InstallerError 10007
Fatal Error. Unable to load a resource DLL.
Unable to load the custom resource file C:\Program Files (x86)\[Destination Folder]\supportfiles\customResource0009.dll because Windows Error 126: Impossibile trovare il modulo specificato.
while attempting to load the resource DLL C:\Program Files (x86)\[Destination Folder]\supportfiles\customResource0009.dllThe fact is that both the install.exe file and the customResource0009.dll are located in the folder containing the NI installer on which I based the generation of the .iss file, and specified in the line
Source: "[Path of NI installer]\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversionand I don't understand why they are searched in
C:\Program Files (x86)\[Destination Folder].
There's something I'm missing but I don't know what, so I hope you can help me.
I look forward to your kind reply, and I thank you in advance.
If I don't hear from you sooner, I wish you happy holidays!
Alessia