Jump to content

Dynamically generate installer UpgradeCode


Recommended Posts

Posted (edited)

Hi everyone,

I'm implementing a tool to create brand new project based on a custom project framework that include LV code and build specifications. After cloning and setting anything up and  running, I need to find a way to update the installer UpgradeCodes of the installer build specifications defined in my project. 

I've tried some VIs from the AppBuilder or InstallerBuilder APIs (..\vi.lib\AppBuilder API and ..\vi.lib\InstallerBuilder) but nothing seems to let me change the UpgradeCode of an installer build specifications. 

Does anyone know if there is a way to do so?

Edited by Benjamin R
Posted

I don't know of a utility for doing this.  But the Upgrade Code can be found as a string property in the .lvproj file.  Just open it is a text editor and you can search for it.  I think it is called the "MSI_upgradeCode".

Posted

Thanks @hooovahh for your answer.

My concern is more about how to generate a new UpgradeCode as you can do it from the Installer property window. Is there any LabVIEW or Windows function that I can call to get a brand new oneÉ

Posted
1 hour ago, Darren said:

There's also the Create NI GUID.vi in LabVIEW 2020 and later.

Is there a good reason that this is password protected?  Other than it probably is a single call library node to some internal function?

Posted
21 minutes ago, hooovahh said:

Is there a good reason that this is password protected?

It calls a private internal method, yeah. NI policy is that VIs that call private properties/methods/events are password-protected.
image.png.840602889ecfe93c134103c6ea041313.png

  • Thanks 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.