Add Additional data to Add/Remove programs list

Got a problem you cannot solve? Try here.
Ton_B
Posts: 115
Joined: Wed Nov 16, 2005 8:34 am
Location: Netherlands
Contact:

Add Additional data to Add/Remove programs list

Postby Ton_B » Thu Mar 09, 2006 6:55 am

See topic : http://www.installaware.com/forum/viewtopic.php?t=521

I know it is not possible to set variables, such as "publisher", in your script. Simply fill all of the textboxes in the options-dialog.

IA will create a registry entry for the Add/Remove program list.

Unfortuanlly Not every setting is available in this dialog.
The following registry keys are not available:

HelpTelephone
ModifyPath
NoModify
NoRepair
URLinfoAbout
Readme

I tried to add these manually by adding adittional data to the regisrty:
HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\$PRODUCTCODE$\\URLUpdateInfo "http://www.bma-mosos.nl"

but it did not work.
I the tried to run this code áfter the "Apply install" command, and still nothing happened.

I used packageaware to detect the registry settings made by the setup, and I detected that the displayname of the product is stored in a registry key inside : HKCR\\Installer\\Products\\[Number]\\Productname
But I can't find the used numer anywhere inside the IA script or Options dialog.

Is there any way to add additional information to the registry and get the generated numer?

jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Postby jimo » Thu Mar 09, 2006 8:57 am

These are the extra info keys I update in all my IA Packages:

Write Registry Key HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\$TITLE$\\DisplayVersion, $VERSION$
Write Registry Key HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\$TITLE$\\HelpTelephone, 800-631-5867
Write Registry Key HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\$TITLE$\\ReadMe,
Write Registry Key HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\$TITLE$\\RegCompany, $USERCOMPANY$
Write Registry Key HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\$TITLE$\\RegOwner, $USERNAME$

I do all of these before "Apply Install". The NoRepair and NoModify are set the same way.

The product Information URL is located in project options off the Project menu item.

Ton_B
Posts: 115
Joined: Wed Nov 16, 2005 8:34 am
Location: Netherlands
Contact:

Postby Ton_B » Thu Mar 09, 2006 9:34 am

Thanx,

I tried it and it works fine!

But is it not possible to overwrite the keys written by IA ?

like this:

Code: Select all

Set Variable COMMENT to Hello World!
Write Registry Key HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\$TITLE$\\Comments, $COMMENT$

So the comment line in the popup of the Add/Remove list, will be "Hello World!" instead of the default value typed in the project options dialog? (default = All rights reserved)

jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Postby jimo » Thu Mar 09, 2006 10:00 am

Change the commenct in the "Add-Remove Programs" page in the IDE.

Ton_B
Posts: 115
Joined: Wed Nov 16, 2005 8:34 am
Location: Netherlands
Contact:

Postby Ton_B » Thu Mar 09, 2006 10:10 am

So it is not possible to set these values from script, using "home-made" variables ?

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Thu Mar 09, 2006 12:51 pm

No, these are set in the Project Options window. Their values cannot be overriden from the setup script, but some are mirrored in setup script variables, such as $TITLE$ and $COMPANY$.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 152 guests