uninstall directory read from a variable
Hi,
I have installed a component his path is saved in a variable so it is not $INSTDIR. By uninstall the variable is empty so I cannot uninstall this component. Can somebody help me to save this varible so that I can get the path in the uninstaller?
other an another solution?
Thanks
Here the install and uninstall Section:
Section /o "!DDE-Client" DSEC
StrCmp $IsAspicInstalled "true" installDDE
MessageBox MB_OK "$(AspicErrString)"
Abort
installDDE:
CreateDirectory $aspicPath\Backup
SetOutPath $aspicPath\DDE-Client
SetOverwrite on
.......
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Run" "DDECLI" '"$INSTDIR\DDECLI.exe"'
WriteRegStr HKLM "${REGKEY}\Components" DDE-Client 1
SectionEnd
Section /o un.DDE-Client UNDSEC
Delete /REBOOTOK $aspicPath\DDE-Client\DDECLI.exe"
Delete /REBOOTOK $aspicPath\DDE-Client\Ddetxte.ini
StrCmp $ComponentLang "German" 0 +2
Delete /REBOOTOK $aspicPath\DDE-CLient\ddetxtd.ini
Delete /REBOOTOK $aspicPath\DDE-CLient\DDECLI.ini
RMDir $aspicPath\Backup
DeleteRegValue HKLM "${REGKEY}\Components" DDE-Client
SectionEnd