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
- :
- GenerateGUID Help
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
‎Apr 22, 2010
12:51 PM
GenerateGUID Help
I've found several postings about how to generate a new Product Code from the automation interface. However, being extremely limited in my VB Script skills I haven't been able to figure out how to use this GenerateGUID method I've seen postings and documentation about. Here's about all I've come up with so far. As you can see I have a placeholder for where the GenerateGUID should be called but where does the resulting GUID actually go? Can someone fill in the blanks I've left in the code below?
Also, once I've gotten the script written do I just run the script as if it were any other executable and Windows will pick up on the .vbs extension and launch it appropriately?
Set oProject = CreateObject("ISWiAuto15.ISWiProject")
oProject.OpenProject = "C:\Path\To\Project.ism"
oProject.GenerateGUID()
oProject.ProductCode =
oProject.SaveProject
oProject.CloseProject
Set oProject = Nothing
Also, once I've gotten the script written do I just run the script as if it were any other executable and Windows will pick up on the .vbs extension and launch it appropriately?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 22, 2010
02:16 PM
GenerateGUID returns a GUID in string format. You can assign its return value to the project's ProductCode property:
Note that there is some sample VBScript code in the ISWiProject help topic that demonstrates how to open a project.
oProject.ProductCode = oProject.GenerateGUID()
Note that there is some sample VBScript code in the ISWiProject help topic that demonstrates how to open a project.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 22, 2010
05:05 PM
Thanks for the response. I've been looking at the documentation on the rest of the code necessary to change the Product Code but all of the documentation made reference to "run GenerateGUID" but I had not seen anything that detailed how the function worked.