This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Using MsiSetProperty in InstallScript Custom Action
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 25, 2007
02:13 PM
Using MsiSetProperty in InstallScript Custom Action
I have a Basic MSI project with some InstallScript Custom Actions.
From within an InstallScript custom action, I can get the values of properties just fine (with MsiGetProperty), but calls to MsiSetProperty and MsiSetTargetPath don't seem to be working.
I am trying to set AppDataFolder to the value I want based on the version of Windows. Since AppDataFolder is a folder in the Directory table, I tried using MsiSetTargetPath, but with the same results, it's not being changed. Even when the return value from MsiSetTargetPath signals Success.
In some threads I've read, it seemed like some people were eluding that you could only use public (all uppercase) properties with MsiSetProperty, but I can't find anything to back that up.
I have read the threads and Help about using deferred custom actions to get values of properties, but I can get the values of properties just fine. So, I don't think that is the answer for me.
Any suggestions?
From within an InstallScript custom action, I can get the values of properties just fine (with MsiGetProperty), but calls to MsiSetProperty and MsiSetTargetPath don't seem to be working.
I am trying to set AppDataFolder to the value I want based on the version of Windows. Since AppDataFolder is a folder in the Directory table, I tried using MsiSetTargetPath, but with the same results, it's not being changed. Even when the return value from MsiSetTargetPath signals Success.
In some threads I've read, it seemed like some people were eluding that you could only use public (all uppercase) properties with MsiSetProperty, but I can't find anything to back that up.
I have read the threads and Help about using deferred custom actions to get values of properties, but I can get the values of properties just fine. So, I don't think that is the answer for me.
Any suggestions?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 25, 2007
08:41 PM
I found some information in the Help that leads me to think you can't change a private property like AppDataFolder by using MsiSetTargetPath.