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.
How to execute custom action in patch design view
Started by
gkcom123
, Jul 03 2006 08:15
5 replies to this topic
Posted 03 July 2006 - 08:15
Hi
I have created a BASIC MSI project(first.msi), in which there is a custom action which is modifying some file.
Now i want to modify some more line in the same file without uninstalling a product. I have created a new MSI Installer(second.msi) with modified custom action and after that i have created a patch through patch design view.
My privious setup was "first.msi" and latest one was "second.msi".
I ran the patch but latest custom action is not executed
What condition should i specify for this custom action so that it should run during patching.
Please suggest me
Thanks
I have created a BASIC MSI project(first.msi), in which there is a custom action which is modifying some file.
Now i want to modify some more line in the same file without uninstalling a product. I have created a new MSI Installer(second.msi) with modified custom action and after that i have created a patch through patch design view.
My privious setup was "first.msi" and latest one was "second.msi".
I ran the patch but latest custom action is not executed
What condition should i specify for this custom action so that it should run during patching.
Please suggest me
Thanks
Posted 04 July 2006 - 11:06
A verbose log file should tell you whether your new custom action is actually called. It may also be useful to use a different name for the new custom action DLL (if it is a DLL)
Stefan Krüger
InstallSite.org twitter facebook
Posted 05 July 2006 - 07:05
Is there any need to specify some extra condition on this modified custom action?
I specified only "Not Installed" condition and this custom action is Installscript custom acton.
and it verbos log i m not seeing this custom action get called
What to do to get it work .
I specified only "Not Installed" condition and this custom action is Installscript custom acton.
and it verbos log i m not seeing this custom action get called
What to do to get it work .
Edited by gkcom123, 05 July 2006 - 07:14.
Posted 05 July 2006 - 07:14
In case of a small or minor update (ProductCode unchanged) your product is already installed, so Installed is true.
Not Installed is a condition for custom actions that should only run during first time install.
Not Installed is a condition for custom actions that should only run during first time install.
Stefan Krüger
InstallSite.org twitter facebook
Posted 05 July 2006 - 07:21
Hi
I have not changed any product or package code
My new msi contains new modified custom action and i m creating a patch in patch design view. mY previous setup was already installed and after patching this custom action is not modifying my application.
So my question is
what condition should i apply to this modified custom action in new msi so that it will run during patching.
I have not changed any product or package code
My new msi contains new modified custom action and i m creating a patch in patch design view. mY previous setup was already installed and after patching this custom action is not modifying my application.
So my question is
what condition should i apply to this modified custom action in new msi so that it will run during patching.
Edited by gkcom123, 05 July 2006 - 07:24.
Posted 05 July 2006 - 07:30
Most importantly: You MUST change the PackageCode with each build Ususally InstallShield does this automatically for you.
If your action should run ONLY during the patch use condition:
PATCH
If it should run during first time install and during patch:
Not Installed Or PATCH
If your action should run ONLY during the patch use condition:
PATCH
If it should run during first time install and during patch:
Not Installed Or PATCH
Stefan Krüger
InstallSite.org twitter facebook