Jump to content


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.
Photo

How to execute custom action in patch design view


5 replies to this topic

gkcom123

gkcom123
  • Members
  • 4 posts

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


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

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)

gkcom123

gkcom123
  • Members
  • 4 posts

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 .

Edited by gkcom123, 05 July 2006 - 07:14.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

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.

gkcom123

gkcom123
  • Members
  • 4 posts

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.

Edited by gkcom123, 05 July 2006 - 07:24.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

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