Good evening, I have a problem launching file at the installation finish.
I'm using latest version of AI.
My program is a plugin of other softwares.
The behaviour of my setup would be like this:
1- Let the user to select an option about install some file like x86 or x64. (it depends installation version of other software)
2- At the installation finished, I launch some DLL/VBS to write files in ProgramFiles and delete some folders.
PART 1
To resolve this, I use 32bit setup version, because I don't want to install my x64 files if the windows version is x64, but ONLY if other program installed is x64. Elsewhere install x86 also if Windows version is x64.
I create 2 folder:
X32 Dir, with all x86 files.
X64 Dir, with all x64 files.
When setup is finished, I launch a VBS that remove one of this folder as the user choosed, and rename the other to the name desidered.
Is a correct procedure? Or does AI permit other methods?
Moreover AI always change from C:\ProgramFiles\ to C:\ProgramFiles (x86)\ Installation Path automatically, because it says that it's a 32bit package... but I don't want this behaviour.
PART 2
My biggest problem is to write and launch files in ProgramFiles by CustomActions.
I tried with:
- Deferred no impersonation under PublishProducts as you suggest in help file.
- Bootstrapper admin (also tried with as Invoker)
- Installation type: per-user only if it has administration rights (also tried other selection)
- Tried to disable Win 7 UAC, nothing.Work only if UAC disabled under InstallFinalize. (but I can't deploy to customers saying them to disable UAC!!!)
- Tried all execution properties.
All rights with Windows XP, nothing with Vista/7.
See the attachment image if I have committed any mistakes.
Where is the problem?
The DLL only open a txt file and write in it some text. Work only if UAC disabled under InstallFinalize.
Thank you,
Nicola