-
Notifications
You must be signed in to change notification settings - Fork 176
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
Folder not removed on uninstalling #123
Comments
This behavior is a side effect of the Anyway, I just tested and disabling of the KeyPath auto-insertion does solve the problem: AutoElements.DisableAutoKeyPath = true;
var project = new ManagedProject("MyProduct",... Just in case if you wander why it's not disabled by default - it would trigger WiX/MSI problems for other scenarios (e.g. Certificates, EnvVariables and SqlDatabase samples). And... Though I will see if any improvements are possible in that area. |
Indeed some improvement were possible. Currently auto-injection of the KeyPass is suppressed for components containing files. But actually it needed to be expanded for registries (your case) as well. Done. Will be available in the next release. |
Thanks |
Until the fix is available you can change the KeyPass attribute in the post-build event |
Yes it is released.
WiX may have numerous causes of leaving the folders behind.You may want to
analyse your generated WXS for clues.
The problem described in this issue was related to the WiX workflow for `
KeyPath="yes" `attribute. It is fixed now by WixSharp implementing work
around but your case may be different.
…On Fri, 26 Jul 2019 at 20:49, Erik Parso ***@***.***> wrote:
Hello, is it released already ? I see this thread is 2 years old and i
have a same problem now. Here is project definition.
var project = new Project("MyProduct",
new Dir(@"%ProgramFiles%\My Company\My Product",
new Dir("Client",
new Files(System.IO.Path.Combine(clientFiles, "*.*"))),
new Dir("Service",
new Files(System.IO.Path.Combine(serviceFiles, "*.*")))),
new RegValue(RegistryHive.LocalMachine, @"SOFTWARE\Microsoft\Windows\CurrentVersion\Run",
"AspWinServiceClient", @"[INSTALLDIR]Client\AspWinServiceClient.exe")
{
Win64 = true
})
{
Platform = Platform.x64,
GUID = new Guid("6fe30b47-2577-43ad-9095-1861ba25889b"),
Version = new Version("1.0.0.0"),
MajorUpgradeStrategy = MajorUpgradeStrategy.Default,
};
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#123?email_source=notifications&email_token=AD7UNTXWBCPDEFQTYEBD543QBLJEHA5CNFSM4DWKAFO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD24H4ZA#issuecomment-515407460>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AD7UNTTKZQVMJOAAEGZCEZ3QBLJEHANCNFSM4DWKAFOQ>
.
|
Consider the following code:
On uninstalling, the folder
%ProgramFiles%\My Company
is not removed.The generated
wxs
file contains:The text was updated successfully, but these errors were encountered: