Adding Variables/Version Info into the Software Title

Got a problem you cannot solve? Try here.
Gareth Owen
Posts: 149
Joined: Fri Oct 21, 2005 8:42 am
Location: UK

Adding Variables/Version Info into the Software Title

Postby Gareth Owen » Wed Nov 02, 2005 3:46 am

For our application we require that multiple versions of our software are installed on a PC, We have got this working by just updating the main product GUID (a bodge I know but it does work) The only issue is that in the Uninstall entry for the software it does not display any version information, You do not know which version you are uninstalling.

Is there a way to get this information in the uninstall enty?
The value needs to be a variable.

Cheers

Gareth

sinan
Site Admin
Posts: 1028
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Wed Nov 02, 2005 6:55 am

How did you update the main product GUID?

Both the display name and the registry key for the uninstall are determined by the $TITLE$ variable. If you call Set Variable TITLE something, you can customize this information. You need to call Set Variable TITLE right before Apply Install.

Gareth Owen
Posts: 149
Joined: Fri Oct 21, 2005 8:42 am
Location: UK

Postby Gareth Owen » Thu Nov 03, 2005 9:35 am

Updated using the Generate button next to the Product Code.

I was trying to put the variable in the Product name field in the GUI, when i tried #varname# it just put the string #varname# in the installer.

Should I leave this as the basic title and just add the additional information to $TITLE$ in script?

sinan
Site Admin
Posts: 1028
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Fri Nov 04, 2005 1:43 am

The product code is designed to hold a single guid only. It does not accept variables. Therefore, regenerating the guid should work.

You can also directly update the product name field while you are at it, as this is what $TITLE$ is initialized with.

The only drawback here is that you have to make these changes at compile time. Fortunately, we will soon have a way to generate new product instances, dynamically, with a single script command, at runtime :)

Gareth Owen
Posts: 149
Joined: Fri Oct 21, 2005 8:42 am
Location: UK

Postby Gareth Owen » Fri Nov 04, 2005 2:45 am

:D That sounds like just what we need. In the meantime,

I was trying to put the Compiler Variable in Product Name field, but as I said this did not work. So we will manually update it for now.

Thanks

sinan
Site Admin
Posts: 1028
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Sat Nov 05, 2005 12:24 am

All the settings in the Project Options window (most of which are also available in various Visual views) cannot use variables, or compiler variables. Variables and compiler variables may only be used in the setup script.

Sorry for the confusion - we will have to update our documentation on this one!

Gareth Owen
Posts: 149
Joined: Fri Oct 21, 2005 8:42 am
Location: UK

Postby Gareth Owen » Thu Dec 01, 2005 5:40 am

Is it possible to pass the Product Name in using the Command line?

I am running out of ways to automate our build procedure now, we need to be able to create an installation with the Product Name (As displayed in the Add/Remove Programs) of the format

ApplicationName rX.XX.X

The app version will be generated by our automated build process, that should hopefully run generate the installation at the end.

sinan
Site Admin
Posts: 1028
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Thu Dec 01, 2005 6:56 am

Can you tell me a little more about your scenario here, so I can better understand the goal and make an optimal recommendation? It does seem like you need the Transform Instance command - contact me privately for that. But maybe not, just let me know what exactly you are doing (privately again if you wish), and we'll find an optimal solution for your case.

Gareth Owen
Posts: 149
Joined: Fri Oct 21, 2005 8:42 am
Location: UK

Postby Gareth Owen » Fri Dec 02, 2005 3:54 am

:D That did the trick, Thanks for the help.


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 120 guests