Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 449
  • Last Modified:

Visual Studio Installer problem

I have a microsoft visual studio installer which installs an exe and 2 dlls.

Normally when I make a change to my exe I just change the Version number of my setup project and all works fine. (Exe gets upgraded, Add/Remove Progrmas entries are fine)

But this time I mistakenly changed the UpgradeCode (Generated a new number).  Now when I upgraded by double clicking my new installer the following happened:
1. The installation process went fine.
2. The exe in my Program folder dod not get upgraded.
3. There were now 2 instances of my program in the Add/Remove Program files.

Now I Have uninstalled both versions from Add/Remove Program files and I want now to in stall the old version of my program so I can test the new installer again it wont let me. It says:
"An error occurred while trying to install MyProgram" - PLease see log file.

I think I have screwed things up because I changed the UpgradeCode.  How can I solve this problem.
0
Wanting2LearnMan
Asked:
Wanting2LearnMan
  • 2
1 Solution
 
Wanting2LearnManAuthor Commented:
The log file says this:

The following properties have been set:
Property: [AdminUser] = true {boolean}
Property: [ProcessorArchitecture] = Intel {string}
Property: [VersionNT] = 6.0.1 {version}
Running checks for package '.NET Framework 2.0', phase BuildList
Running external check with command line "C:\Users\RYANJP~1\AppData\Local\Temp\VSDDA5A.tmp\dotnetfx\dotnetchk.exe"
Process exited with code 1
Setting value '1 {int}' for property 'DotNetInstalled'
Reading value 'Version' of registry key 'HKLM\Software\Microsoft\Internet Explorer'
Read string value '7.0.6001.18000'
Setting value '7.0.6001.18000 {string}' for property 'IEVersion'
The following properties have been set for package '.NET Framework 2.0':
Property: [DotNetInstalled] = 1 {int}
Property: [IEVersion] = 7.0.6001.18000 {string}
Running checks for command 'dotnetfx\instmsia.exe'
Result of running operator 'ValueExists' on property 'VersionNT': true
Result of checks for command 'dotnetfx\instmsia.exe' is 'Bypass'
Running checks for command 'dotnetfx\WindowsInstaller-KB893803-v2-x86.exe'
Result of running operator 'ValueExists' on property 'Version9x': false
Result of running operator 'VersionLessThan' on property 'VersionNT' and value '5.0.3': false
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '3.0': true
Result of checks for command 'dotnetfx\WindowsInstaller-KB893803-v2-x86.exe' is 'Bypass'
Running checks for command 'dotnetfx\dotnetfx.exe'
Result of running operator 'ValueNotEqualTo' on property 'DotNetInstalled' and value '0': true
Result of checks for command 'dotnetfx\dotnetfx.exe' is 'Bypass'
'.NET Framework 2.0' RunCheck result: No Install Needed
Launching Application.
Using MsiInstallProduct with package path 'C:\Users\ryanjpcush\Desktop\PC Software Sent to Dermot Howlin\Setup.msi' and command line ''
MsiInstallProduct returned '1620'
Error:
0
 
Wanting2LearnManAuthor Commented:
Solved the problem by opening up the old msi in "Orca" and getting the old UpgradeCode and changing the new UpgradeCode to the old one.

All is OK now

Why is the UpGradeCode tab right beside the Version No.  Its too easy to make this mistake.
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now