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: Read from file to modify installer at runtime - Basic MSI
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
‎Jan 31, 2012
03:45 PM
Read from file to modify installer at runtime - Basic MSI
Hi,
I'm working on a Basic MSI application and need general guidance. My installer has optional features, and I need to toggle components and create random shortcuts at runtime. The shortcuts do not exist at build time
For example, let us say that I have foo.exe and bar.exe as files in my features. I want to read from a/an .ini or .xml file runtime.
MyCool.ini
[settings]
bar=0
[items]
water1=Pacific
other1=foo.exe pacific.txt
water2=Indian
other2=foo.exe indian.txt
Water3=Gulf
other3=foo.exe gulf.txt
After the installer has run, I will to modify the installlevel for the feature assocaited with bar.exe and I want to see three shortcuts - Pacific, Indian and Gulf.
What is the best strategy to do this? I am not sure if antivirus programs will be a problem for vb script. Can I create shortcuts on the fly like this? The automation stuff that I have read mostly pertains to changes at build time ...
Thanks for any guidance ... Again, this is basic msi, not installscript ...
i :confused:
I'm working on a Basic MSI application and need general guidance. My installer has optional features, and I need to toggle components and create random shortcuts at runtime. The shortcuts do not exist at build time
For example, let us say that I have foo.exe and bar.exe as files in my features. I want to read from a/an .ini or .xml file runtime.
MyCool.ini
[settings]
bar=0
[items]
water1=Pacific
other1=foo.exe pacific.txt
water2=Indian
other2=foo.exe indian.txt
Water3=Gulf
other3=foo.exe gulf.txt
After the installer has run, I will to modify the installlevel for the feature assocaited with bar.exe and I want to see three shortcuts - Pacific, Indian and Gulf.
What is the best strategy to do this? I am not sure if antivirus programs will be a problem for vb script. Can I create shortcuts on the fly like this? The automation stuff that I have read mostly pertains to changes at build time ...
Thanks for any guidance ... Again, this is basic msi, not installscript ...
i :confused:
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 31, 2012
04:04 PM
I see that I need to add records to the shortcut table. Any guidance is still welcome ...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 17, 2012
12:09 PM
Hi Folks,
I never got a reply, but I've found that you should avoid VB Script. What works is using managed assemblies. For us old timers, 'Managed Assembly' is secret code for .NET DLL made from a class.
In VB .NET or C#,
1. Make a 'class' file project
2. Add public Function(s)
3. Compile the class and it is a .DLL
4. Use the Custom Actin wizard to add it to your project
Public Function TestDialog()
MsgBox("Test Dialog!")
Return "1"
End Function
Surf the web, and you will find examples. That's it ...
I never got a reply, but I've found that you should avoid VB Script. What works is using managed assemblies. For us old timers, 'Managed Assembly' is secret code for .NET DLL made from a class.
In VB .NET or C#,
1. Make a 'class' file project
2. Add public Function(s)
3. Compile the class and it is a .DLL
4. Use the Custom Actin wizard to add it to your project
Public Function TestDialog()
MsgBox("Test Dialog!")
Return "1"
End Function
Surf the web, and you will find examples. That's it ...