Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Repair after Minor upgrade


11 replies to this topic

saurabh2688

saurabh2688
  • Full Members
  • 21 posts

Posted 04 August 2016 - 04:13

Hi,

 

I have an application which has MSI installer of Minor Upgrade type.

It has functionality to upgrade itself using msiexec.exe /i Setup.msi REINSTALL=ALL REINSTALLMODE=vomus /q, which happens inside the Windows Service associated with this application.

 

I install the version X of it on machine using it's MSI file.

Later, I upgrade it to version X+1 using application's upgrade functionality. 

Everything works perfect here. All binary files, registry entries, Add/Remove Program entries are fine and they all show version X+1.

 

After sometime, I go to Control Panel -> Add/Remove Program and click to Repair my application.

 

When the repair process is completed, I see some things of my application has reverted itself to version X.

 

The binary files in install location inside Program Files show all the files of version X+1, but the Add/Remove Program entries, registry entries show version X.

 

Can anyone help me, how to resolve this problem.

 

Thank you in advanced.

 

Regards,

Saurabh


Edited by saurabh2688, 04 August 2016 - 04:14.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 17 August 2016 - 10:02

Hard to tell what's going on. Any hints in the log?



saurabh2688

saurabh2688
  • Full Members
  • 21 posts

Posted 17 August 2016 - 12:05

I upgraded my application from version X to X+1 then, I enabled logs using Logging = "voicewarmup" and clicked Repair in ARP.

 

Following are some of the lines from Log files which I think might be useful for you:

 

.

.

SOURCEMGMT: Media is disabled for product.
SOURCEMGMT: Processing net source list.
SOURCEMGMT: Trying source Location from where I had installed version X of my application.
Entering CMsiConfigurationManager::SetLastUsedSource.
Specifed source is already in a list.
User policy value 'SearchOrder' is 'nmu'

.

.

Adding new sources is not allowed.

Set LastUsedSource to: Location from where I had installed version X of my application.

Set LastUsedType to: n.
Set LastUsedIndex to: 1.
SOURCEMGMT: Resolved source to: 'Location from where I had installed version X of my application'

.

.

 

Action start : RegisterProduct.
Re-registering product - performing upgrade of existing installation.
Resolving source.
Resolving source to launched-from source.
Setting launched-from source as last-used.
PROPERTY CHANGE: Adding SourceDir property. Its value is 'Location from where I had installed version X of my application'.

.

.

.

Executing op: SourceListRegisterLastUsed(SourceProduct= {ProductCode},LastUsedSource=Location from where I had installed version X of my application)

.

.

.

SOURCEDIR = Location from where I had installed version X of my application

.

.

OriginalDatabase = Absolute Path to MSI file of my application.

 

 

After this I found, that my application has reverted itself to version X.

 

If you want, I can email/message you the whole log file.



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 17 August 2016 - 19:33

What is the value of the ProductVersion property in version X and in version X+1 ?

I assume the Package Code values are different? To check this, open the created msi files (not the ism project files) and look under General Information.



saurabh2688

saurabh2688
  • Full Members
  • 21 posts

Posted 18 August 2016 - 08:06

ProductVersion values of X and X+1 are 1.00.00 and 2.1.2400.

But both these are minor upgrade type installers. The version numbers are just for our reference.

 

Yes, only Package Codes are different. Product codes and Upgrade Codes of both these versions have been kept same.



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 18 August 2016 - 11:47

looks good.

Does update validation give any hints?



saurabh2688

saurabh2688
  • Full Members
  • 21 posts

Posted 19 August 2016 - 03:41

What do you mean by Update Validation? I do not know about it.

How can I provide you the information about Update Validation?



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 23 August 2016 - 10:24

In InstallShield open the Build menu and select Validate > Upgrade Validation Wizard



saurabh2688

saurabh2688
  • Full Members
  • 21 posts

Posted 29 August 2016 - 11:13

Sorry for the late reply.

 

Following is the Update Validation Log:

 

Validator: Val0003
Severity: Note
Message: This setup will perform a MINOR upgrade of the referenced previous setup
 
 
Validator: Val0015
Severity: Warning
Message: The CreateFolder table contains new content. Therefore, if you are packaging this upgrade as a patch, you will not be able to make it an uninstallable patch.
 
 
Validator: Val0015
Severity: Warning
Message: The Environment table contains new content. Therefore, if you are packaging this upgrade as a patch, you will not be able to make it an uninstallable patch.
 
 
How this log will help me in resolving my problem ?
Does this log means I am doing something wrong?


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 29 August 2016 - 13:21

Your validation log looks good. I don't know what's going wrong, sorry.



deramor

deramor
  • Full Members
  • 187 posts

Posted 29 August 2016 - 22:42

Are you able to reproduce this behavior if you launch you MSI directly and do a repair?  If so, you can generate a log and post that.  Perhaps there is something in there that will give a clue.



saurabh2688

saurabh2688
  • Full Members
  • 21 posts

Posted 30 August 2016 - 10:23

Hi deramor,

 

The issue did not reproduce with the steps mentioned by you (launch MSI directly and do a repair).

 

What else can give me some clue about this problem I am facing?