Comments (6)
Yes it seems to be broken for cases without sub-folders. Use direct WiX constants instead:
var project = new Project("MyProduct",
new Dir("SystemFolder", new File("MyLibrary.dll")));
from wixsharp.
I don't know why, but your sample doesn't install MyLibrary.dll in system32.
The code below works well:
var project = new Project("MyProduct",
new Dir(new Id("SystemFolder"), "System", new File("MyLibrary.dll")));
from wixsharp.
My bad, I forgot, it's not the name it's Id
that controls the destination path for the WiX constants for spacial folders.
Your work around is exactly what is needed.
from wixsharp.
The problem is caused by the auto-assignment INSTALLDIR
id to the bottom-most directory, which is in your case happens to be a special folder that needs to keep its original Id.
Thus the alternative work around to set the auto-id value to the string of your choice:
Compiler.AutoGeneration.InstallDirDefaultId = "SystemFolder";
from wixsharp.
As an enhancement added compile warning on special folder dirId reassignment.
from wixsharp.
The problem is caused by the auto-assignment
INSTALLDIR
id to the bottom-most directory, which is in your case happens to be a special folder that needs to keep its original Id.Thus the alternative work around to set the auto-id value to the string of your choice:
Compiler.AutoGeneration.InstallDirDefaultId = "SystemFolder";
I was trying so hard to create subfolder under the SystemFolder and keep getting duplicate id until I found this as suggested by the owner.
Compiler.AutoGeneration.InstallDirDefaultId = "SystemFolder";
from wixsharp.
Related Issues (20)
- How to show all installing Files in control , for example userconrol or listbox, in Bundle WPF C# HOT 4
- How to get Features installed path. HOT 3
- dotnet tool install --global wix - Need for all users HOT 2
- Explicitly assign component Id in WXS through C# script HOT 7
- Another unselected feature with empty folder is installed when MSI is run HOT 5
- Change MSI properties to be viewed on "Windows Properties" screen HOT 1
- Application crashing with unknown error if i click on finish after installation of a WPF Custom UI installer HOT 9
- Supporting third-party WPF Theme Library HOT 2
- Add custom Wizard-like Installer to Bundle / Burn Installer HOT 13
- Uninstall is failing with error - with error "service could not be deleted" HOT 1
- Does Wixsharp support dacpac deployment in SQL server? HOT 2
- Error when specifying Package Platform as ARM64 HOT 9
- Getting ICE03 Invalid Language ID error for numerous dlls referred while building MSI HOT 4
- WixSharp_wix4 builds for net45(451) and correct Nuget-packet info HOT 1
- ComponentIDs for files change depending on folder that source is built from. HOT 5
- Conditional uninstallation - Uninstall only if registry value is zero HOT 1
- Error when running installer produced by WixSharp Managed Setup (WIX4) Visual Studio template HOT 1
- Dynamic localization via custom dialog HOT 2
- Add custom wix-WPF dialog via "new item" in Visual Studio HOT 1
- "Per User" installer, AfterInstall is not elevated. HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wixsharp.