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

Custom Actions not being executed in Non-UI Mode


9 replies to this topic

tl0

tl0
  • Members
  • 49 posts

Posted 06 November 2003 - 21:43

I'm testing my installer in full GUI mode and in non-UI mode.

Looking at the logs, I notice that in the full GUI Mode, all my custom actions are executed. This is the good news

However in non-UI mode, i'm getting errors in the log like this:

MSI (s) (94:50): Skipping action: InstallQuickLaunchShortcut (condition is false)

even though the condition is set to "Not Installed" and the product is clearly NOT installed so shouldn't this condition be TRUE???

Is this a bug with installshield? Has anyone else run across something like this?

thx in advance.

Edited by tl0, 07 November 2003 - 16:15.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 07 November 2003 - 12:03

Where (in which sequence) do you have this custom action?

reflex

reflex
  • Members
  • 30 posts

Posted 07 November 2003 - 12:08

And is "NOT Installed" spelt with Installed having a capital I?



tl0

tl0
  • Members
  • 49 posts

Posted 07 November 2003 - 15:59

QUOTE (Stefan Krueger @ 2003-11-07 11:03)
Where (in which sequence) do you have this custom action?

shows up in the install exec sequence After ISSelfRegisterFinalize
Install Exec Condition: "Not Installed"
Execution Scheduling: "Always execute"
In-script Execution: Immediate Execution

Any ideas?

Thanks.


tl0

tl0
  • Members
  • 49 posts

Posted 07 November 2003 - 16:00

QUOTE (reflex @ 2003-11-07 11:08)
And is "NOT Installed" spelt with Installed having a capital I?

yes. the condition is spelled "Not Installed".

If this condition wasn't spelled correctly, it woulnd't execute in UI mode either. So this is not the problem.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 07 November 2003 - 18:15

That's very strange. Cna you reproduce this with a simple sample project (I cannot). Assuming this is a Basic MSI project, not InstallScript MSI? If you insert a VBScript action like this:
MsgBox Property("Installed")
right before your custom action, what does it display?

tl0

tl0
  • Members
  • 49 posts

Posted 07 November 2003 - 18:56

QUOTE (Stefan Krueger @ 2003-11-07 17:15)
That's very strange. Cna you reproduce this with a simple sample project (I cannot). Assuming this is a Basic MSI project, not InstallScript MSI? If you insert a VBScript action like this:
MsgBox Property("Installed")
right before your custom action, what does it display?

Stefan, we are using installscript MSI. Is this a known issue?

Edited by tl0, 07 November 2003 - 18:56.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 08 November 2003 - 14:28

Tried the same with InstallScript MSI I couldn't reproduce. Can you try the VBScript?

tl0

tl0
  • Members
  • 49 posts

Posted 10 November 2003 - 16:31

btw, we are using IS Dev 7.04..

I just tried doing the vbscript test:
MsgBox Property("Installed")

... and it returns an empty dialog box.!!! blink.gif

I was just thinking that this action occurs after the "InstallFinalize" custom action. Perhaps that is the reason why it's not executing correctly in silent mode (but that shouldn't matter right??)

thanks again for all your help.

t

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 11 November 2003 - 09:38

The empty dialog box is the expected result: it means that the Installed property is not defined. When you run the uninstall it will display the value of Installed which is the installation date and time. So this proved that Installed is undefined, i.e. False, at that thime. I don't see why your action would not get invoked.