!define PRODUCT_NAME "Darwinbots3" !define PRODUCT_WEB_SITE "http://www.darwinbots.com" !define SC_WEB_SITE "http://www.darwinbots.com/WikiManual/index.php?title=Darwinbots_3" !define PRODUCT_VERSION " A00033" ;// A for alpha, 00033 for the 33 revision in the repository !define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" !define PRODUCT_UNINST_ROOT_KEY "HKLM" !define PRODUCT_STARTMENU_REGVAL "StartMenuDir" !define DIR_BOTS "$INSTDIR\Bots" !define DIR_SETTINGS "$INSTDIR\Settings" !define DIR_SHARING "$INSTDIR\Sharing" !define DIR_SIMS "$INSTDIR\Sims" !define DIR_SOURCE "$INSTDIR\Source" !define SCRIPT_TO_SOURCE_ROOT ".." ; helps navigate from where the scripts directory is to the parent directory for all source !define DEFAULT_ASSETS "${SCRIPT_TO_SOURCE_ROOT}\DefaultAssets" !define SCRIPT_OUTPUT_DIR "${SCRIPT_TO_SOURCE_ROOT}\Installs" Function RetrieveInstallDir ReadRegStr $0 ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "InstallationDir" ; retrieve registry keys left behind by previous Darwinbots installs, if they exist FunctionEnd