carlosjuero: The wizard should have added more to the script file. I downloaded InnoSetup and created a quick test script. Are you using the most recent version of InnoSetup ?[5.4.3]
If InnoSetup is moving files around on you then the first thing you have to do is move the file back to where you need it after creating the script.
Then in your script file change:
[Files]
Source: "C:\Program Files (x86)\Inno Setup 5\Examples\MyProg.exe"; DestDir: "{app}"; Flags: ignoreversion
modify the DestDir directive to read DestDir: "{app}\bin
Further down in the [Icons] section you need to add/modify the two lines:
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
- change the FileName directives to read {app}\bin\{#MyAppExeName}
If you are using an older version of InnoSetup I would suggest downloading the newest version [it is free after all] and installing it. Make sure to install the official addon that comes with it [pre-compilation helps].
One other thing - in Innosetup can you make it add custom values to the registry, but those values depend upon your install directory?