Hi,
I am having problem running a Custom Action during Silent install. The Custom action calls a Wisescript exe file which in turn runs a bat file.
1.The bat file has commands to run regasm on a few .NET assemblies and put a few files in GAC.
2.The Custom action is placed in "Execute Deferred" before the "InstallFinalize" step and is wrapped with an if-then-end condition to check for a particular feature.
3.The wise script exe runs the bat file by using the "Execute program" action which calls cmd.exe and I have set it to run in "Hidden" mode and "Wait for the program to exit"
This CA action runs perfectly fine when run normally. But when running in silent mode using this command:
msiexec /i "\\full path to msi" /qb ADDLOCAL=ALL
this CA does not get run. Am I missing something?
Thanks for help.
Pragya
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Silent Install Problem
Started by
pjaiswal
, Jan 25 2008 00:20
2 replies to this topic
Posted 25 January 2008 - 00:40
I dont know if this would help but changing the option to qr instead fo qb also works fine.
Posted 26 January 2008 - 15:34
First off: running a Wise script to call cmd.exe to run a .bat file looks a bit morte complicated than necessary. Why don't you run cmd.exe as EXE cusdtom action without Wise script (if .bat is really needed)?
I don't know for sure why your custom action doesn't run, but there's an important difference between UI levels:
- full ui and qr both run the UI and the Execute sequence
- qb and q opnly runs the Execute sequence, the UI sequence is skuipped
So if you are setting any information in the UI sequence this will not be set in qb and q mode.
Also, generating a log file of the install could help to diagnose the problem.
I don't know for sure why your custom action doesn't run, but there's an important difference between UI levels:
- full ui and qr both run the UI and the Execute sequence
- qb and q opnly runs the Execute sequence, the UI sequence is skuipped
So if you are setting any information in the UI sequence this will not be set in qb and q mode.
Also, generating a log file of the install could help to diagnose the problem.
Stefan Krüger
InstallSite.org twitter facebook