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
- :
- checking if a machine is part of a domain
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
‎Dec 08, 2008
11:42 AM
Managed code custom action parameters
Hello,
I have a custom action that I need to pass the USERDNSDOMAIN as a paramerer but when I use the [USERDNSDOMAIN] I get nothing.
If I put [ProductVersion] as a test then it dispays that ok.
Any ideas?
Thanks in advance
I have a custom action that I need to pass the USERDNSDOMAIN as a paramerer but when I use the [USERDNSDOMAIN] I get nothing.
If I put [ProductVersion] as a test then it dispays that ok.
Any ideas?
Thanks in advance
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 08, 2008
03:48 PM
Where and how are you setting USERDNSDOMAIN? As a sanity check, verify that it's being set before your action runs; if the property is set in the UI sequence and being used in the Execute sequence, you'll want to verify that USERDNSDOMAIN is also listed in the value of the SecureCustomProperties property.
If that doesn't reveal the reason, perhaps create an MSI log file to verify the property is being set at all?
If that doesn't reveal the reason, perhaps create an MSI log file to verify the property is being set at all?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 09, 2008
05:13 AM
Hi,thanks for the responce.
Probably I should write instead what I am trying to solve and maybe there is a better method to do it.
I have a config file that with the following in the settings
key="URL" value="" which I update during the instalation using the "XML File Changes" with that:
http://[TARGETNAME].[%USERDNSDOMAIN]/Discovery_Update/DiscoveryTool_Config.asmx
if the machine this is installed is in a domain that works fine but not if it is a standalone machine.So what I would like to do is to insert a custom dialog that allows the user to enter a value (ip I guess) if the [TARGETNAME].[%USERDNSDOMAIN] is empty.
Am I going the right way and if yes how can this achieved?
Thanks,
Akis
Probably I should write instead what I am trying to solve and maybe there is a better method to do it.
I have a config file that with the following in the settings
key="URL" value="" which I update during the instalation using the "XML File Changes" with that:
http://[TARGETNAME].[%USERDNSDOMAIN]/Discovery_Update/DiscoveryTool_Config.asmx
if the machine this is installed is in a domain that works fine but not if it is a standalone machine.So what I would like to do is to insert a custom dialog that allows the user to enter a value (ip I guess) if the [TARGETNAME].[%USERDNSDOMAIN] is empty.
Am I going the right way and if yes how can this achieved?
Thanks,
Akis
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 10, 2008
06:18 PM
Sure, you can test if either property is empty with a condition like Not TARGETNAME, and you could create a simple custom dialog that uses that condition to prompt the user to enter a value...