It is trivial to get user input for the installed directory. I have no problem with that. I have gone through the examples many times and since I'm not familiar with wix, I must miss something very simple.
in the setup.cs:
_Project project =
new LaunchCondition("CUSTOM_UI=\"true\" OR REMOVE=\"ALL\"", "Please run setup.exe instead."),
new Dir(@"%ProgramFiles%\My Test\MyProduct",
new File(binaries, @"Files\Bin\MyApp.exe"),
new Property("IDIR", "empty")
new File(docs, @"Files\Docs\Manual.txt"))));
project.UI = WUI.WixUI_Common;
project.GUID = new Guid("6f330b37-5578-43ad-9095-1861ba25889b");
I know I have to put the property there, but how does that relate to INSTALLDIR, do I have to call custom action?
and then in the myproductsetup.cs
I can very easily add the following text with newDirectory = "C:\test\test"
public void StartInstall(string newDirectory)
StartInstall("CUSTOM_UI=true 1DIR=" + newDirectory);
will somehow change the installdir to C:\test\test
I must miss something...
in the InstallDIr example, the install_customDirectory.cmd has
again, how does that relate to INSTALLDIR.
Thanks for your help....
Your Wix# is very powerful if I know how to go about doing this.