Thank for the reply, works like a charm. btw, The reason there is no GUI is because this msi and many others are embedded in a larger installer that has GUI, it will never really be lunched by a user, it was just simpler to explain...
On Sun, Dec 12, 2010 at 4:52 PM, Christopher Painter < chr...@deploymentengineering.com> wrote: > You'd have to change ProductFolder to PRODUCTFOLDER and then pass msiexec > /i > foo.msi PRODUCTFOLDER= > > > BTW, I disagree strongly with installers that have no UI by design. It's > trivial for you to put a reference to WiXUI in your installer and then add > /QN > at the command line if you really want to skip the UI. Having someone > double > click an MSI and it just takes off with absolutely no indication of what > it's > going to do and whether it did it or not is crazy IMO. > > > Christopher Painter, Author of Deployment Engineering Blog > Have a hot tip, know a secret or read a really good thread that deserves > attention? E-Mail Me > > > > ----- Original Message ---- > From: ronen temp <ronent...@gmail.com> > To: wix-users@lists.sourceforge.net > Sent: Sun, December 12, 2010 7:51:46 AM > Subject: [WiX-users] Setting installation location from command line > > Hi, > My installer is not supposed to have any gui, instead, I would like to > install to program files by default or to a location selected by the user > when he is lunching my installer from the command line using msiexec. > > I tried defining my directories like this: > > <Directory Id="TARGETDIR" Name="SourceDir"> > <Directory Id="ProgramFilesFolder"> > <Directory Id="ProductFolder" Name="TestSetupFolder"/> > </Directory> > ... > </Directory> > > and overriding by setting the TARGETDIR from command line like this: > msiexec /i c:\myInstaller.msi TARGETDIR=c:\someFolderName. > This had no effect. > > Any ideas on how to accomplish that? > Thanks. > > ------------------------------------------------------------------------------ > Oracle to DB2 Conversion Guide: Learn learn about native support for > PL/SQL, > new data types, scalar functions, improved concurrency, built-in packages, > OCI, SQL*Plus, data movement tools, best practices and more. > http://p.sf.net/sfu/oracle-sfdev2dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > > > ------------------------------------------------------------------------------ > Oracle to DB2 Conversion Guide: Learn learn about native support for > PL/SQL, > new data types, scalar functions, improved concurrency, built-in packages, > OCI, SQL*Plus, data movement tools, best practices and more. > http://p.sf.net/sfu/oracle-sfdev2dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, new data types, scalar functions, improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, best practices and more. http://p.sf.net/sfu/oracle-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users