Hi, I have just started using WiX and I have a couple questions concerning
some of the things I want to do. If you can help on any of them, that would
be greatly appreciated.

1. Is it possible to have the program run through the installer, then have
it not be an installed program, so it doesn't show up in add/remove
programs, and that I can just run the msi again and again?

2. Can I automatically run the uninstall after the install have finished?
Similar to get the effect of #1.

3. I include EXE(s) in my msi file, can I run them from the msi and not
actually copy them to the local computer?

4. I run these EXEs quietly, but everytime another one runs, whatever
program the user is on will lose focus, can I change that?

I don't ask for someone to answer all these questions, if you can that's
great, but I need some direction on them. Also, my company has requested
that I use .msi for this, and I have to run these exes through the msi, even
though I'm not really installing anything, and don't really want to. I know
it's weird, but it's what I have to do, and don't really have a choice.

Code so far for reference:
File 1:

<?xml version='1.0'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
    <Product Id='GUID' Name='Updates' Language='1033' Version='1.0.0.0'
Manufacturer='MYCOMPANY' UpgradeCode='GUID' >
        <Package Description='Windows Installer package' Comments='Windows
Installer to apply patches.' Manufacturer='MYCOMPANY' InstallerVersion='200'
Compressed='yes' />
        <Media Id='1' Cabinet='product.cab' EmbedCab='yes' />
        <Directory Id='TARGETDIR' Name='SourceDir'>
            <Directory Id='ProgramFilesFolder' Name='PFiles'>
                <Directory Id='MyDir' Name='Updates'>
                    <Component Id='MyComponent' Guid='GUID' >
                        <File Id='patch0' Name =
'67C5CEF0522B242E7FE17BE9734860117FAB1F5D.exe' DiskId='1' Source = 'C:\Save
Directory\patches\67C5CEF0522B242E7FE17BE9734860117FAB1F5D.exe' />
                        <File Id='patch1' Name =
'9D1F72ABA7BFD6670433E4B997A88860F217E520.exe' DiskId='1' Source = 'C:\Save
Directory\patches\9D1F72ABA7BFD6670433E4B997A88860F217E520.exe' />
                        <File Id='patch2' Name =
'49AE6AC4F6E0A609124F2CE6F80FCEF249273C02.exe' DiskId='1' Source = 'C:\Save
Directory\patches\49AE6AC4F6E0A609124F2CE6F80FCEF249273C02.exe' />
                        <File Id='patch3' Name =
'B6A3D8953714847D02D614E8FCB5B4171D1029FB.exe' DiskId='1' Source = 'C:\Save
Directory\patches\B6A3D8953714847D02D614E8FCB5B4171D1029FB.exe' />
                        <File Id='patch4' Name =
'8F9E90BF9B6AD58FD264CC1CF0F187F9A83223A5.exe' DiskId='1' Source = 'C:\Save
Directory\patches\8F9E90BF9B6AD58FD264CC1CF0F187F9A83223A5.exe' />
                        <File Id='patch5' Name =
'D137985D21958A9F3F277189287B9A71EEE02421.exe' DiskId='1' Source = 'C:\Save
Directory\patches\D137985D21958A9F3F277189287B9A71EEE02421.exe' />
                        <File Id='patch6' Name =
'D1BA1076CB5D94B06333011C6EB29DEDB5C2C48D.exe' DiskId='1' Source = 'C:\Save
Directory\patches\D1BA1076CB5D94B06333011C6EB29DEDB5C2C48D.exe' />
                        <File Id='patch7' Name =
'E5FEC41B4A9647BC5050DBBD1A08B469D72C69F4.exe' DiskId='1' Source = 'C:\Save
Directory\patches\E5FEC41B4A9647BC5050DBBD1A08B469D72C69F4.exe' />
                        <File Id='patch8' Name =
'9FC0909C468C17870AB868D0D7F4EB815B309045.exe' DiskId='1' Source = 'C:\Save
Directory\patches\9FC0909C468C17870AB868D0D7F4EB815B309045.exe' />
                    </Component>
                </Directory>
            </Directory>
        </Directory>
        <Feature Id='MyFeature' Title='Features' Level='1'>
            <ComponentRef Id='MyComponent' />
        </Feature>
        <InstallExecuteSequence>
            <Custom Action='LaunchExe0' After='InstallFiles'>NOT
Installed</Custom>
            <Custom Action='LaunchExe1' After='InstallFiles'>NOT
Installed</Custom>
            <Custom Action='LaunchExe2' After='InstallFiles'>NOT
Installed</Custom>
            <Custom Action='LaunchExe3' After='InstallFiles'>NOT
Installed</Custom>
            <Custom Action='LaunchExe4' After='InstallFiles'>NOT
Installed</Custom>
            <Custom Action='LaunchExe5' After='InstallFiles'>NOT
Installed</Custom>
            <Custom Action='LaunchExe6' After='InstallFiles'>NOT
Installed</Custom>
            <Custom Action='LaunchExe7' After='InstallFiles'>NOT
Installed</Custom>
            <Custom Action='LaunchExe8' After='InstallFiles'>NOT
Installed</Custom>
        </InstallExecuteSequence>
    </Product>
</Wix>

File 2:
<?xml version='1.0'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
    <Fragment>
        <CustomAction Id='LaunchExe0' FileKey='patch0' ExeCommand=' /quiet
/norestart' Execute='deferred' Return='ignore'  />
        <CustomAction Id='LaunchExe1' FileKey='patch1' ExeCommand=' /quiet
/norestart' Execute='deferred' Return='ignore'  />
        <CustomAction Id='LaunchExe2' FileKey='patch2' ExeCommand=' /quiet
/norestart' Execute='deferred' Return='ignore'  />
        <CustomAction Id='LaunchExe3' FileKey='patch3' ExeCommand=' /quiet
/norestart' Execute='deferred' Return='ignore'  />
        <CustomAction Id='LaunchExe4' FileKey='patch4' ExeCommand=' /quiet
/norestart' Execute='deferred' Return='ignore'  />
        <CustomAction Id='LaunchExe5' FileKey='patch5' ExeCommand=' /quiet
/norestart' Execute='deferred' Return='ignore'  />
        <CustomAction Id='LaunchExe6' FileKey='patch6' ExeCommand=' /quiet
/norestart' Execute='deferred' Return='ignore'  />
        <CustomAction Id='LaunchExe7' FileKey='patch7' ExeCommand=' /quiet
/norestart' Execute='deferred' Return='ignore'  />
        <CustomAction Id='LaunchExe8' FileKey='patch8' ExeCommand=' /quiet
/norestart' Execute='deferred' Return='ignore'  />
    </Fragment>
</Wix>

-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Various-WiX-questions-tp5288182p5288182.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to