Old 27th September 2007, 05:12   #1
sticcino
Junior Member
 
Join Date: Sep 2007
Posts: 6
Question 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
sticcino is offline   Reply With Quote
Old 27th September 2007, 09:43   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
What is wrong with RegDLL?

Stu
Afrow UK is offline   Reply With Quote
Old 27th September 2007, 11:52   #3
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
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

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 27th September 2007, 13:23   #4
sticcino
Junior Member
 
Join Date: Sep 2007
Posts: 6
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
sticcino is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump