with the code that Rob left you may wish to put "or Installed" after it, this will allow the add remove programs to successfully remove your app, with the current code, the app wont install unless the setup.exe is run, however if you try to remove using add remove programs you get your error msg "Please run from exe"
so put this in like like <Condition Message="Please run from the Setup.exe">(RUNFROMEXE=1) or Installed</Condition> Hope that helps Rob Hamflett wrote: > > From a previous post: > "You could put a Condition element under the Product element like this: > <Condition Message='Please run the exe'>RUNFROMEXE = 1</Condition> > > When you call msiexec from the exe be sure to pass RUNFROMEXE=1 as an > argument. > Double-clicking the MSI file obviously won't provide this argument, and so > the launch condition will > fail." > > I don't know if you can get Windows Installer to perform an early return, > but this is at least a > step in the right direction. > > Rob > > Magus wrote: >> Ok, this might sound a bit odd, but I would like my installer to run my >> setup(bootstrapper) if the end-user clicks the MSI. What exactly would I >> need to setup in order for the Installation to Execute the Setup program >> and >> close itself without erroring. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- View this message in context: http://www.nabble.com/Run-my-Setup.exe-file-if-user-clicks-the-MSI-file-tf4502686.html#a12861246 Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users