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

In OnBegin event MAINTENANCE is always FALSE


4 replies to this topic

bababyt

bababyt
  • Members
  • 3 posts

Posted 20 October 2004 - 10:02


Hi,

Can someone tell me why in a BASIC MSI project when I check for
maintenance mode it gives me always false even if I'm uninstalling?


if (!MAINTENANCE) then
MessageBox("Say Hello!", INFORMATION) ; //only this is executed
else
MessageBox("Say MAINTANENCE!", INFORMATION) ;
endif

Installshield 7.1 Professional

Thanks

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 21 October 2004 - 11:17

Moving question to Basic MSI forum

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 21 October 2004 - 11:19

Please clarify which project ype you are using. I just moved your question from the InstallSheld professional 7 to the Basic MSI forum, but now I see that you say you are using IS Professional 7. So what InstallShield product and project type are you really using?

bababyt

bababyt
  • Members
  • 3 posts

Posted 21 October 2004 - 12:21

I am using InstallShield 7 and creating Basic MSI project.

However I found the solution:

MAINTENANCE property is set only in InstallShield7 Standard Project if there is a log created for installscript actions as specified in the article Q110701 "INFO: How the MAINTENANCE Property Is Set"

I wanted to use MAINTEnance property to determine if setup is installing or uninstalling.

Now I use the condition "Installed" or "Not Installed" for custom actions.

I want to say to InstallShield - PLEASE, DO SOME EFFORT AND MAKE YOUR HELP AND DOCS MORE CONSISTENT. IF YOU DON"T KNOW HOW - ASK YOUR BIG BROTHER MICROSOFT.




Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 22 October 2004 - 13:18

So you are using InstallShield Developer 7, not Professional 7.