-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installers seems stop working #1487
Comments
It seems like these guys facing the same problem as we, wixtoolset/issues#8078. We also have such error messages in logs (see logBefore) Maybe it's not your issue 😅 |
My bad, I was responding to a different issue.... Nevertheless it is indeed a WiX problem, which is not necessarily caused by the WiX runtime. It looks like they did not anticipate that when they unpack managed-CA dll the process may not have enough privileges. This new behavior may have been introduced by a Win update or something... |
After update wix to version 5.0.0 I got exception Project ferefences:
Full error text:
|
WixSharp is integrated with wix4 and has not been tested with WiX 5. It may or may not work. So far my experience with new WiX releases had a mixed success rate. So I usually wait until WiX major upgrades mature enough to be integrated. My first look at wix5 changes confirmed that they are pure WiX changes and all their new MSI authoring experiences have already been implemented in WixSharp anyway. Thus at some point, I will update the wix5 integration but only just to allow using wix5 compilers. I will be handling this task under the normal priority and within the scope of the dedicated #1493. However, if you see some valuable wix5 dev experience that is not available in WixSharp then let me know and I will bump the priority of #1493. |
You can build. Your post above indicates that you built your MSI. You have a runtime problem, that, I am speculating, is related to some configuration specifics of your target system. I could be wrong so you can prepare a simple hello-world project that exhibits this problem and I can have a look at it. Switching to wix5 will most likely yield the same problem you are experiencing right now. |
installed wix
Program.cs: ManagedProject project = new ManagedProject("WixSharpTests");
project.AddDir(new Dir($"%AppDataFolder%/WixSharpTests",
new Dir("WixSharpTests", new Files(Path.Combine("../", "*.*")))));
project.UI = WUI.WixUI_FeatureTree;
project.Codepage = "1251";
project.Language = "ru-RU";
project.Encoding = Encoding.UTF8;
project.Platform = Platform.x64;
project.Scope = InstallScope.perUser;
project.BuildMsi(); csproj: <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net48</TargetFramework>
<LangVersion>7.3</LangVersion>
</PropertyGroup>
<ItemGroup>
<None Remove="*.msi" />
<None Remove="*.exe" />
<None Remove="*.wxs" />
<None Remove="*.wixpdb" />
<None Remove="*.wixobj" />
<None Remove="CustomAction.config" />
<Content Include="../../assets/*.*" Link="assets/%(FileName)$(FileExt)" />
<Content Include="../../.github/workflows/*.yml" Link="ci/%(FileName)$(FileExt)" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Caliburn.Micro" Version="4.0.212" />
<PackageReference Include="Caliburn.Micro.Core" Version="4.0.212" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="WixSharp_wix4" Version="2.1.5" />
<PackageReference Include="WixSharp_wix4.bin" Version="2.1.5" />
<PackageReference Include="WixSharp-wix4.WPF" Version="2.1.5" />
<PackageReference Include="WixToolset.Dtf.WindowsInstaller" Version="4.0.4" />
<PackageReference Include="WixToolset.Mba.Core" Version="4.0.4" />
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="cd .\
set ide=true;
$(TargetPath);" />
</Target>
</Project> |
I do not know where wix v4.0.4 is coming from as it is not available on nuget.org: I have updated my wix globally to v4.0.5 and rebuilt your sample. It runs as expected. I have attached the working sample for you to test. I suggest you build it in your environment and see if it behaves the same way: |
One more thing... don't forget, you have to run your msi elevated. If you don't then it may lead to exactly that type of problem as you described. Though, in this case MSI UI is very clear about insufficient privileges. But if you run without UI then .... you may only have that log entry and no other info. |
I just need to use the installation without elevated rights, my files are installed in the user's folder |
Before version 4.0.5 this installer worked without elevation |
Sorry, I cannot comment on that. If indeed the previous version of WiX4 yielded different behaviour then you will need to contact the WiX team. However, I just retested the same sample I shared and it does not ask for the elevation. Even though I was under the impression it did when I tested it the first time. Thus I am not sure the problem exists. You will need to recheck... Anyway, if you are to contact the WiX team then I suggest you create a test case by calling |
okay thanks. |
Just so you are aware:
|
My team and I make installers for our applications using your library, here is the code that is used in any our solution. I extracted most of the logic in test project with simple consoleApp (i can't provide .rar with all code)
Yesterday some of one our users started to face with problem that installer seems doesn't work. Moreover, it is installed on some computers without problems, but it is not installed on others.
The main 100% workaround solution is run the msi installer with "Troubleshoot compatibility" from windows context menu.
But it's interesting why installers stopped works, because in Friday everything was fine, today with the same code we got such problem.
This is logs from other program being installer before troubleshooting logBefore.txt(failed) and after logAfter.txt (successfully installed)
Thank you for some suggestions why it happens
The text was updated successfully, but these errors were encountered: