tkw829
21st October 2003 14:42 UTC
Registry issue
When I use the following line as part of an install:
WriteRegStr HKLM SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce "WSDialog" "regsvr32 scrobj.dll /n /i:file://C:/$INSTDIR\wscProgressDialog.wsc"
If $INSTDIR contains "Program Files" (As selected by the end user), the registry ignores the Program portion and just uses "Files". Does anyone know how I can rectify this?
kichik
21st October 2003 15:31 UTC
Try quoting.
tkw829
21st October 2003 22:21 UTC
The directory is provided from the $INSTDIR variable via the end-user. How do I quote it?
kichik
21st October 2003 22:25 UTC
Just add quotes around the path in that line:
WriteRegStr HKLM SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce "WSDialog" 'regsvr32 scrobj.dll /n /i:"$INSTDIR\wscProgressDialog.wsc"'
tkw829
22nd October 2003 16:03 UTC
Thank you!