- Moderator
- #31
ask us ....So basically the only news is I NEED HELP/FEEDBACK to progress.
ask us ....So basically the only news is I NEED HELP/FEEDBACK to progress.
ask us ....So basically the only news is I NEED HELP/FEEDBACK to progress.
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" UpgradeCode="PUT-GUID-HERE" Version="1.0.0.0" Language="1033" Name="My Application Name" Manufacturer="My Manufacturer Name">
<Package InstallerVersion="300" Compressed="yes"/>
<Media Id="1" Cabinet="myapplication.cab" EmbedCab="yes" />
<!-- Step 1: Define the directory structure -->
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="APPLICATIONROOTDIRECTORY" Name="My Application Name"/>
</Directory>
</Directory>
<!-- Step 2: Add files to your installer package -->
<DirectoryRef Id="APPLICATIONROOTDIRECTORY">
<Component Id="myapplication.exe" Guid="PUT-GUID-HERE">
<File Id="myapplication.exe" Source="MySourceFiles\MyApplication.exe" KeyPath="yes" Checksum="yes"/>
</Component>
<Component Id="documentation.html" Guid="PUT-GUID-HERE">
<File Id="documentation.html" Source="MySourceFiles\documentation.html" KeyPath="yes"/>
</Component>
</DirectoryRef>
<!-- Step 3: Tell WiX to install the files -->
<Feature Id="MainApplication" Title="Main Application" Level="1">
<ComponentRef Id="myapplication.exe" />
<ComponentRef Id="documentation.html" />
</Feature>
</Product>
</Wix>
It would also be great to hear from the @Developers what they need for MP2 since MPEM is meant to work for Mp1 and Mp2.
Hi sa_ddam213 - in general I agree - because:
However, I am not that familiar with Wix - I've looked at the docs, but I don't see any issues that would concern me. Are you aware of any changes/limitations that using Wix/MSI might impose?
- I often end up checking the update.xml for MPEI because I am so used to XML for skinning that I can find things more easily - sometimes I can't remember where stuff is in MPEMaker as there are several levels in some cases.
- Your script example looks very understandable to me
- IIRC MP2 already uses Wix for the msi installer so a common installer for extensions may have an advantage - you can see some background in the Team forum thread:
I want to give my warnings about this approach (having done a few wix installers in the past).
WIX is basically a XML wrapper around Windows Installer and therefore comes with the limitations and problems of it.
- The Visual Studio extensions will not install on the Express edition that many extension devs use.
- Skinner usually don't use Visual Studio and won't install it to create their package.
- There is no graphical designer that will create the wix xml files.
- Windows Installer is build into Windows, but is on the user`s PC in many different versions depending on OS an ServicePack Level. You have to be careful what feature you are using.
- Creating a nice UI for the actual Installer that will be unique for every installer that is for MPEM will be a lot more work than doing a custom WPF app.
- The feature set of Windows Installer is rich, but extensibility is not one of its strengths. I am unsure how you are planing to implement things like package dependencies (checking, auto download dependent ones). Best guess will be a swarm of custom actions, which every plugin will have to integrate again.
- Creating packages must be done careful - it is easy to create MSI that will not uninstall due to some task failing at uninstall - since Windows Installer is a database we have no control over - a failed installer will stay in the users "AddRemovePrograms" and we have no chance to ever remove it plus this user wont be able to install that extension again if it uses the same ID.
I can probably think of some more points, but you get my general concern I guess. Not saying it is not possible to use MSI via WIX, just want to save you from what might be too much stress to implement. Using XML for package definition is not a real advantage of WIX - even current MPEI uses it