How to give Read/Write permissions to a Folder during installation using .NET

I guess my other post was deleted for being a little too general, so I’ve refined it below: The thing to do is make a custom action. It’s pretty straightforward, check out the MSDN walkthrough for writing a C# custom action here. You’ll put your permission-changing code inside the Install method: Follow the first few … Read more

How to create a directory in wix?

Define the folder like this: <Directory Id=”TARGETDIR” Name=”SourceDir”> <Directory Id=”CommonAppDataFolder”> <Directory Id=”TestFolder” Name=”test”> <Directory Id=”ExampleFolder” Name=”example” /> </Directory> </Directory> </Directory> The important part here is the CommonAppDataFolder Id, which is known by Windows installer. You can find the full list of known system folders in the Windows Installer Property Reference. If you install any files … Read more

How to register file types/extensions with a WiX installer?

Unfortunately there’s no way to do a “safe” association with Windows Installer. We just write everything out to the registry and then have a separate component that takes over the system-wide default and is only installed if no other application has already registered itself as the default. With Vista there’s the new “default programs” interface, … Read more

Advertised shortcuts vs. non-advertised shortcuts in windows setup project

A non-advertised shortcut (Standard Shortcuts) is a standard windows shortcut. If you right-click it you will see the target field points to the executable that will be launched. If, for whatever reason, this executable is missing the application will simply fail. An advertised shortcut (Windows Installer Shortcuts) is a technology specific to Windows Installer. If … Read more

RemoveError: ‘setuptools’ is a dependency of conda and cannot be removed from conda’s operating environment

While I still did not find how to cleanly uninstall anaconda, I was able to resolve the error by using the following: conda update –force conda conda update anaconda and again conda update conda As a result, I got a stable environment with no dependency conflicts. Seems like something within latest conda is too restrictive … Read more

Wix: How to set permissions for folder and all sub folders

First of all, I would recommend you using PermissionEx instead. It is a standard WiX extension and it has one really huge advantage over Permission – it doesn’t overwrite, but modifies ACLs. And by default, it applies permissions to the folder and all its descendant files and folders, so you don’t have to specify anything … Read more

How to find the UpgradeCode and ProductCode of an installed application in Windows 7

IMPORTANT: It’s been a while since this answer was originally posted, and smart people came up with wiser answers. Check How can I find the Upgrade Code for an installed MSI file? from @ Stein Åsmul if you need a solid and comprehensive approach. Here’s another way (you don’t need any tools): open system registry … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)