Quantcast
Channel: wixsharp Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1354

New Post: Multiple issues with Wix#

$
0
0
Hello,

I've troubles making Wix# work as I want.
  1. Why are only a few Steps for CustomActions implemented into Wix#?
    I want to run a custom action after AppSearch but there doesn't seem to be a way for that. I might be able to use the "LaunchConditions" step, too. But I wonder why that limitation is there.
  2. I want to create cab files but wix# itself doesn't give me a way to specify a MediaTemplate. I used the "WixSourceGenerated" event to modify the xml directly and it works, but it feels dirty.
  3. I want to run a CustomAction in the InstallExecuteSequence and the InstallUISequence but it doesn't seem to work. I have set Sequence to: Sequence.InstallExecuteSequence|Sequence.InstallUISequence but it's only added to the ExecuteSequence.
Most of my issues are based on the simple fact that I want to store the Installationdirectory in the registry and retrieve it if the software is installed already for updates.

What I tried was:
Actions = new WixSharp.Action[]
{                  
   new SetPropertyAction(new Id("SET_INSTALLDIR"),"INSTALLDIR","[EXISTINGINSTALLDIR]",Return.ignore, When.After, Step.LaunchConditions,new Condition("NOT INSTALLDIR AND EXISTINGINSTALLDIR<>\"FALSE\""),Sequence.InstallExecuteSequence|Sequence.InstallUISequence)
},

Properties = new WixSharp.Property[]
{
   new RegValueProperty("EXISTINGINSTALLDIR", RegistryHive.LocalMachine,@"Software\MyApp","InstallDir","FALSE"), 

},

RegValues = new RegValue[]
{
    new RegValue(RegistryHive.LocalMachine,@"Software\MyApp","InstallDir","[INSTALLDIR]")
}
Another not related issue I have is that I have split my installer in two parts: A "Core" installation with small files for quick update and one which contains big files but doesn't need updates.

For the Core installation I used this to ignore everything below bigfiles:
new Files(source+"\\*.*", new[] { source + @"\bigfiles\**"}))
That works but "bigfiles" itself and any other folder inside it is created (with an EmpyDirectory tag). It's only ignoring the files. Is that a bug or on purpose?

Thanks for your help.

Viewing all articles
Browse latest Browse all 1354

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>