VBScript is unacceptable for installs that I write.   Have you looked at 
http://wix.sourceforge.net/manual-wix3/qtexec.htm to see if it meets your 
needs?   BTW, the commandline being called in this example suggests to me 
additional problems with this installers design.  adxreg.exe 
/install=myapp.dll  
sounds a lot like a home grown  SelfReg pattern which brings all sorts of other 
problems.
 
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: little.forest <little.for...@ymail.com>
To: General discussion for Windows Installer XML toolset. 
<wix-users@lists.sourceforge.net>
Sent: Fri, September 10, 2010 9:21:05 PM
Subject: Re: [WiX-users] How to change to a directory and run customaction 
inside that directory?

Thanks Edwin!


Yes, I also found it in 
here(http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg12592.html 
). It works now.

But some people said using vbscript in customaction isn't a good idea. so what 
could be the best solution if not using vbscript?

Thanks.



________________________________
From: "Castro, Edwin G. (Hillsboro)" <edwin.cas...@fiserv.com>
To: General discussion for Windows Installer XML toolset. 
<wix-users@lists.sourceforge.net>
Sent: Fri, September 10, 2010 5:50:03 PM
Subject: Re: [WiX-users] How to change to a directory and run customaction 
inside that directory?

Try:

Public Function Main()
Dim WshShell
Set WshShell = CreateObject("WScript.Shell")
WshShell.CurrentDirectory = "C:\Program Files\Common Files\MyApp"
WshShell.Run "adxreg.exe /install=myapp.dll"
Set WshShell = Nothing
End Function

Edwin G. Castro
Software Developer - Staff
Electronic Banking Services
Fiserv
Office: 503-746-0643
Fax: 503-617-0291
www.fiserv.com
Please consider the environment before printing this e-mail


> -----Original Message-----
> From: little.forest [mailto:little.for...@ymail.com]
>
> 
> Anyway, I found type 22(vbscript) maybe the one we need. So I tried it. But it
> doesn't work for me.
> 
> I mean, the vbscript itself works, here it is:
> ~~~~
> Public Function Main()
> Dim WshShell
> Set WshShell = WScript.CreateObject("WScript.Shell")
>  WshShell.CurrentDirectory = "C:\Program Files\Common Files\MyApp"
>  WshShell.Run "adxreg.exe /install=myapp.dll"
> Set WshShell = Nothing
> End Function
> 
> 
> Main
> ~~~~
> 
> 
> 
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



      

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to