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
- :
- Upgrade an application Files
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 06, 2006
03:56 PM
Howto change the Product name displayed in Add/Remove programs?
How do I change the default product name that appears in the Add/Remove programs window, i.e. the displayname value in the uninstall key in windows registry?
(26) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 16, 2007
10:20 AM
I am setting the Registry values using the following code which is in my .reg file in one of my components.
[CODE]Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$V(HASHKEY)]
"DisplayName"="$V(CUSTOMDISPLAYNAME)"[/CODE]
This is the code I have for setting the variables which is directly after the Destination dialog.
I have once again been talking to support about this issue I am having but they are not much help.:o
The message dialogs report back the correct information, it seems from there on that there is a disconnect.
[CODE]Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$V(HASHKEY)]
"DisplayName"="$V(CUSTOMDISPLAYNAME)"[/CODE]
This is the code I have for setting the variables which is directly after the Destination dialog.
public void onChangingDisplayName(com.installshield.event.wizard.WizardActionContext arg0)
{
try {
String displayname = "DeleteMe 3.4.3";
String installLocation = arg0.resolveString("$P(absoluteInstallLocation)");
installLocation = FileUtils.normalizeFileName(installLocation, '/');
// Product_bean is the Bean ID for the Product
// Installation Design -> Product Name -> Advanced -> Bean Id
String uid = arg0.resolveString("$P(bean25757.key.UID)");
int hash = installLocation.hashCode();
String uidandhash = uid + hash;
arg0.getServices().getISDatabase().setVariableValue("CUSTOMDISPLAYNAME",displayname );
arg0.getServices().getISDatabase().setVariableValue("HASHKEY",uidandhash);
JOptionPane.showMessageDialog( null, "Your value: " + displayname);
JOptionPane.showMessageDialog( null, "Your value: " + uidandhash);
} catch(ISDatabaseException se) {
System.out.println(se.getMessage());
} catch(ServiceException s) {
System.out.println(s.getMessage());
}
}
I have once again been talking to support about this issue I am having but they are not much help.:o
The message dialogs report back the correct information, it seems from there on that there is a disconnect.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 16, 2007
03:26 PM
You need to use:
'REGEDIT4'
The update registry does not work with 'Windows Registry Editor Version 5.00'
Tom
'REGEDIT4'
The update registry does not work with 'Windows Registry Editor Version 5.00'
Tom
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 16, 2007
04:10 PM
Actually it does, at least from my experience. I just tested this using both types of reg files and it acted the same way using both files. I think my problem is that the DisplayName is updated during the creation of the uninstaller or something like that, because I can update all of the other fields in the registry like icon, version, etc. but not the DisplayName.
I was trying to update the DisplayName to include the version but I may have to settle for just putting the version information in separately unless there are any other ideas.
Thanks for your help Tom it is much appreciated.
I was trying to update the DisplayName to include the version but I may have to settle for just putting the version information in separately unless there are any other ideas.
Thanks for your help Tom it is much appreciated.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 18, 2007
09:44 AM
Hmm..that is correct, the last thing the Install section of the sequences does is create the uninstaller, then goes to the post install section in the sequence.
Maybe you can add another .reg file in the Support Files and run an Execute Process to manually run the .reg file!
Another option could be to change the DisplayName using a 'Set Product Bean Property' in the sequence just prior to the Install section and change it back in the Post Install Section- although you may see the new name being displayed in the Progress Dialog!
I have not tried that, just rambling here! Have no idea how the uninstaller maybe affected either!
Regards,
Tom
Maybe you can add another .reg file in the Support Files and run an Execute Process to manually run the .reg file!
Another option could be to change the DisplayName using a 'Set Product Bean Property' in the sequence just prior to the Install section and change it back in the Post Install Section- although you may see the new name being displayed in the Progress Dialog!
I have not tried that, just rambling here! Have no idea how the uninstaller maybe affected either!
Regards,
Tom
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 27, 2012
12:54 AM
Hi all,
I created a setup which is working Fine.
In this setup, application name was "ABC".
Now I created another setup having same no of file which were in previous setup.
The change is: in previous setup, name of exe file is "ABC.exe". And in this setup I changed the product name from "ABC" to "DEF" and exe file name is now "DEF.exe". I didn't change the Product code and even I don't want to change it.
Now whenever Old application is installed on user's machine and he/she install new one without uninstalling previous then at that time there is an Upgrade dialog come to user (Its fine behavior just as i want). But whenever user upgrade an application at that time nothing is getting changed. All things event desktop shortcut of the application are of the old version. I want to upgrade all old files and shortcuts by new one.
Please Help Me........:confused: :confused: :confused:
Thanks and regards,
--
Mohit Patel
I created a setup which is working Fine.
In this setup, application name was "ABC".
Now I created another setup having same no of file which were in previous setup.
The change is: in previous setup, name of exe file is "ABC.exe". And in this setup I changed the product name from "ABC" to "DEF" and exe file name is now "DEF.exe". I didn't change the Product code and even I don't want to change it.
Now whenever Old application is installed on user's machine and he/she install new one without uninstalling previous then at that time there is an Upgrade dialog come to user (Its fine behavior just as i want). But whenever user upgrade an application at that time nothing is getting changed. All things event desktop shortcut of the application are of the old version. I want to upgrade all old files and shortcuts by new one.
Please Help Me........:confused: :confused: :confused:
Thanks and regards,
--
Mohit Patel
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 27, 2012
08:21 AM
Try changing the "Replace Option" to always Replace for the main feature(s) and change all others to "Default"
