Skip to content
⌘ NSIS Forum Archive

can't get execwait to work...

4 posts

sticcino#

can't get execwait to work...

Hi,

been going nuts trying to get the following to work. the only one that actually launches is the vcredist_x86.exe, nothing occurs with the rest.

Function in.InstallRedistributables
# Installing library comctl32.ocx
ExecWait '"$SYSDIR\regsvr32 $SYSDIR\DBGRID32.OCX" /s' $0 <== Nothing Happens
or
ExecWait '"regsvr32 $SYSDIR\DBGRID32.OCX" /s' $0 <== Nothing Happens

# Installing library MSDATGRD.OCX
ExecWait '"$SYSDIR\regsvr32 $SYSDIR\MSDATGRD.OCX" /s' $0 <== Nothing Happens

# Installing library MSRDC20.OCX
ExecWait '"$SYSDIR\regsvr32 $SYSDIR\MSRDC20.OCX" /s' $0 <== Nothing Happens

ExecWait '"$INSTDIR\REDIST\vcredist_x86.exe" /Q' $0

ExecWait '"msiexec $INSTDIR\REDIST\CRRedist2005_x86.msi " /passive' $0
FunctionEnd

any help appreciated.

thanks,
Johnny
Anders#
your quotes are all wrong, try
ExecWait '"$SYSDIR\regsvr32.exe" "$SYSDIR\DBGRID32.OCX" /s' $0

but nsis can install librarys for you, try Library.nsh or RegDLL
sticcino#
thank you for the information,

i thought i did try the regdll, but i had to manually register the ocx's again.

I'll try again from scratch

Thanks,
Johnny