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.
INSTALLDIR property fails-Vista UAC on
Started by
lakshmanjh
, Jun 26 2009 06:49
8 replies to this topic
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
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
Posted 26 June 2009 - 10:07
Make sure that INSTALLDIR is listed in the SecureCustomProperties property.
Stefan Krüger
InstallSite.org twitter facebook
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
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
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.
Generate a verbose log to see what's going on.
Stefan Krüger
InstallSite.org twitter facebook
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
Regards,
Laxman
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)?
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)?
Stefan Krüger
InstallSite.org twitter facebook
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
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
Posted 07 July 2009 - 08:08
You may need to call MsiSetTargetPath instead of MsiSetProperty.
Stefan Krüger
InstallSite.org twitter facebook
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
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