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

INSTALLDIR property fails-Vista UAC on


8 replies to this topic

lakshmanjh

lakshmanjh
  • Full Members
  • 8 posts

Posted 26 June 2009 - 06:49

Hi,

My Project has the INSTALLDIR property as Program files in the general information.

I am changing the INSTALLDIR property to "C:\ProgramFiles\Sample" using the Msisetproperty in a Installscript custom action.This is working fine in case of Vista UAC off.

But however the INSTALLDIR is failing to set again if UAC is on.

Please help me on this.

Regards,
Laxman


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 26 June 2009 - 10:07

Make sure that INSTALLDIR is listed in the SecureCustomProperties property.

lakshmanjh

lakshmanjh
  • Full Members
  • 8 posts

Posted 26 June 2009 - 13:14

Hi Stefan,

Thanks for the reply.I have added the INSTALLDIR in SecureCustomproperties.It is working fine in Full UI mode.However it is not working in silent mode.

Please help guide me on this.

Regards,
Lakshman J H

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 29 June 2009 - 09:53

Where (in which sequence) is your custom action located? Remember that in silent mode the InstallUI sequence is skipped.
Generate a verbose log to see what's going on.

lakshmanjh

lakshmanjh
  • Full Members
  • 8 posts

Posted 01 July 2009 - 12:16

My Custom action is located in Execute Sequence. In the custom action i am trying to change the INSTALLDIR path,But I couldnt change the same.I have checked the verbose log also.

Regards,
Laxman

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 03 July 2009 - 15:07

Is the custom action scheduled for immediate execution?
What does the log tell you? Does your custom action execute? Does it return success? Does it change the value of INSTALLDIR at all (maybe it's getting changed back later)?

lakshmanjh

lakshmanjh
  • Full Members
  • 8 posts

Posted 06 July 2009 - 15:16

Hi,

My custom Action is schedules as immediate custom action. Custom action is returning success.Returns value 1.

I am trying to change the INSTLLDIR property in this custom action as follows

Default INSTALLDIR value has "C:\Program Files"

Code:

INSTALLDIR=PROGRAMFILES ^"Sample"

but still it returns Program Files alone.I tried MsiSetProperty also.It fails to set the INSTALLDIR property.

In case of UILevel = 2 and 5-it works fine.
In case of Vista UAC on the UIlevel is returning 3.
Only in case of UILevel=3,INSTALLDIR property fails.

Regards,
Lakshman J H

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 07 July 2009 - 08:08

You may need to call MsiSetTargetPath instead of MsiSetProperty.

lakshmanjh

lakshmanjh
  • Full Members
  • 8 posts

Posted 10 July 2009 - 11:28

Hi Stefan,

I have tried MsiSetTargetPath also. It is not working for me.

Log Files also not returning any error. It returns success.I am trying to deploy->Publish my project through Group policy object in a basic ui mode(UILevel =3).


Regards,
Lakshman