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: InstallScript runtime component destination?
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
‎Jul 01, 2009
11:53 AM
InstallScript runtime component destination?
Hello,
I need to get the runtime destination of an InstallScript component. I have an install that is run by Admins or nonAdmins that requires self-registration of files. I have 2 features and multiple components with self-registration property set for Admin mode. The nonAdmin component counterparts have a script-based destination directory that is set at runtime, and are not set to self-reg. To register in nonAdmin mode I have a FeatureEvent function that runs an open-source regsvr exe that can register files per-user. This function uses FeatureFileEnum to loop through the components and files for a particular feature. I need the component destination so I can set a full path to the file I am registering. How do I get that component destination?
-Jeff
p.s. Cross-posting to IS12 IS2009 forums.
I need to get the runtime destination of an InstallScript component. I have an install that is run by Admins or nonAdmins that requires self-registration of files. I have 2 features and multiple components with self-registration property set for Admin mode. The nonAdmin component counterparts have a script-based destination directory that is set at runtime, and are not set to self-reg. To register in nonAdmin mode I have a FeatureEvent function that runs an open-source regsvr exe that can register files per-user. This function uses FeatureFileEnum to loop through the components and files for a particular feature. I need the component destination so I can set a full path to the file I am registering. How do I get that component destination?
-Jeff
p.s. Cross-posting to IS12 IS2009 forums.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 01, 2009
04:26 PM
InstallScript doesn't provide any direct functionality for obtaining a component's destination. However, you may be able to store some information regarding each component in its containing feature's Miscellaneous field. For example, something like the following could be stored in the Miscellaneous field:
ComponentName1:TARGETDIR;ComponentName2:CUSTOMTEXTSUB
This could then be retrivied from FeatureGetData and parsed. The textsub values can be obtained from TextSubGetValue.
ComponentName1:TARGETDIR;ComponentName2:CUSTOMTEXTSUB
This could then be retrivied from FeatureGetData and parsed. The textsub values can be obtained from TextSubGetValue.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 01, 2009
10:18 PM
I don't understand why InstallScript projects have this limitation. Oh well. I had already thought about a solution similar to yours, but not using text substituion. I'll give it a try. Thanks Josh.