View Single Post
Old 6th August 2021, 11:41   #2
Symbicort
Junior Member
 
Join Date: Aug 2021
Posts: 5
Fix

Ok I'll be honest this was my first problem with the installer that I couldn't handle myself by scanning the docs and googling. So I probably posted in haste. I apologies, I have since found a fix.

Hopefully this will help somebody else.

ok so the first step I took was to do the following.

code:
Function .onVerifyInstDir
; Will add publisher and name to install dir regardless of location.
StrCpy $INSTDIR "$INSTDIR\${PRODUCT_PUBLISHER}\${PRODUCT_NAME}"
FunctionEnd



This worked for all directories but caused ${PRODUCT_NAME} to be repeated. So the next step was to add a backslash to the installdir. This doesnt affect the default installdir, just custom.

code:
InstallDir "$PROGRAMFILES64\${PRODUCT_PUBLISHER}\${PRODUCT_NAME}\"
Symbicort is offline   Reply With Quote