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
- :
- Re: InstallScript upgrading question
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 29, 2009
05:07 PM
InstallScript upgrading question
Hi,
I recently converted an old IS6.3 project to IS2009 InstallScript type.
The original design is that the installer share the same product code since the beginning, at installation, it will check for .ini file info to determine if it's upgrading or fresh install.
The installer leave a folder with the name of the product code at [ProgramFilesFolder]InstallShield Installation Information\, it didn't put any buttons to ARP the only way to uninstall is to run a shortcut which will call the setup.exe in the above path.
After I converted to IS2009, and fixed some issues (objects, for example), fresh install is primarily working now. But when I tried to do upgrading (apply my converted building on a previous release), I immediatly got the error:
The installed version of the application could not be determined. The setup will now terminate.
I searched and couldn't find the message text in my project, so I assume it's from somewhere inside InstallShield. I know it's because it's related to the recorded (or cached) info from previous install in the described path above, since I could eliminate the error if I deleted/renamed the folder before I started to run the upgrading.
My real question is:
1) What's the reason of the error? I basically didn't do much change in the calling procedures except I switched "Program/Start: .........endprogram " to "function OnShowUI()/begin ... ... end;"
2) How can I fix the problem?The error is obviously before anything is triggered in the new package, I even tried renaming OnShowUI() to OnBegin() and put a debugging message at the beginning, but the error is still before that. So I don't know how to avoid/fix the error in my converted project, since it's right before anything (code) of my project.
Thanks,
Peter
I recently converted an old IS6.3 project to IS2009 InstallScript type.
The original design is that the installer share the same product code since the beginning, at installation, it will check for .ini file info to determine if it's upgrading or fresh install.
The installer leave a folder with the name of the product code at [ProgramFilesFolder]InstallShield Installation Information\, it didn't put any buttons to ARP the only way to uninstall is to run a shortcut which will call the setup.exe in the above path.
After I converted to IS2009, and fixed some issues (objects, for example), fresh install is primarily working now. But when I tried to do upgrading (apply my converted building on a previous release), I immediatly got the error:
The installed version of the application could not be determined. The setup will now terminate.
I searched and couldn't find the message text in my project, so I assume it's from somewhere inside InstallShield. I know it's because it's related to the recorded (or cached) info from previous install in the described path above, since I could eliminate the error if I deleted/renamed the folder before I started to run the upgrading.
My real question is:
1) What's the reason of the error? I basically didn't do much change in the calling procedures except I switched "Program/Start: ......
2) How can I fix the problem?The error is obviously before anything is triggered in the new package, I even tried renaming OnShowUI() to OnBegin() and put a debugging message at the beginning, but the error is still before that. So I don't know how to avoid/fix the error in my converted project, since it's right before anything (code) of my project.
Thanks,
Peter
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 29, 2009
05:20 PM
I gather you'll want to add code to OnSetUpdateMode that detects if your 6.x-installed product is present, and if so sets IFX_INSTALLED_VERSION to the installed version (IFX_INSTALLED_VERSION="1.2.3")...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 29, 2009
06:45 PM
Robert,
You are right that I need that function call.
Thanks a lot,
Peter
You are right that I need that function call.
Thanks a lot,
Peter
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 29, 2009
07:00 PM
Great---thanks for following up!
Robert
Robert
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)