-
Hello, I am using Wix installer and encountered a strange problem after I update the software. I can also reproduce that problem in the Windows Sandbox. Setup: Wix creates two shortcuts: desktop and start menu. When I run app for the first time after the update via the desktop shortcut I see the famous "Please wait while Windows configures MyApp" window. And it works, SomeDll v1.3 is present. But, when I run it for the first time from the start menu I see not configuration window and SomeDll is missing i the app folder (old one i deleted).
Visually, I can see in explorer that old SomeDll is deleted during the update. And new SomeDll is copied during the "Windows if configuring" stage. I, obviously, want it to work in both cases and have no idea why the dialog now shown when app is started via the shortcut. Log:
2318 code means File does not exist: [2]. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
Can you give some more details about your MSIs: is your update a major upgrade? How do you install the 2.0 app and the 2.1 update? |
Beta Was this translation helpful? Give feedback.
-
This line (the
Suggests the new lib has a lower version than what was installed or some There will be more information in the log file to show this. Look up from that line. |
Beta Was this translation helpful? Give feedback.
-
Hello,
When I am testing I am installing it in the Windows Sandbox, it should be a clean install.
Seems to be correct, I can see it on log by the GUID. I have Advertise="yes" on desktop shortcut and if I delete it there is no way to trigger MSI repair, except for running it manually via Add/Remove program and my app can never start :/ I also have AllowSameVersionUpgrades="yes" because we need to make micro-patches sometimes. I've checked the DLL version (one that is missing after update): Original: 1.2.0.246 So I guess it happens because MSI doesn't handle the patch part of version, right?
|
Beta Was this translation helpful? Give feedback.
-
Well... it seems to be a common problem and as far as I can see. I've found those posts: wix major upgrade not installing all files and and the last one is my case, file version of dll in NuGet got wrong and is now corrected, but I can't get it into the installation. Also tried suggested solutions, Schedule="afterInstallExecute" and Schedule="afterInstallFinalize" and changing GUID of thr component. I mean... I explicitly tell to copy the file and file is not there after the operation. There seems to be no working solution to the problem :( |
Beta Was this translation helpful? Give feedback.
-
I don't know that it is a common problem but some developers do hit the problem. Unfortunately, downgrading files is not something the Windows Installer does well. The best fix is to always increase file versions (time travel is hard). But if you don't control the file, then probably the next easiest workaround is to install to a different folder (or change the name of the file, if that's possible). Note: Changing the Component GUID without changing all the contained resources just breaks the reference counting more. |
Beta Was this translation helpful? Give feedback.
I don't know that it is a common problem but some developers do hit the problem. Unfortunately, downgrading files is not something the Windows Installer does well. The best fix is to always increase file versions (time travel is hard). But if you don't control the file, then probably the next easiest workaround is to install to a different folder (or change the name of the file, if that's possible).
Note: Changing the Component GUID without changing all the contained resources just breaks the reference counting more.