inno setup - Carry variable values from installer to uninstaller -


are values of variables in inno setup installer carried on uninstaller? example, need create account, , spectify user name in installer, , while uninstalling, access account using name, specified in installer. value carry over, or should store somewhere registry?

no, not. (it uses mechanism storing custom values in registry):

[setup] appname=my program appversion=1.5 defaultdirname={pf}\my program  [code] procedure registerpreviousdata(previousdatakey: integer); begin   // store value under specified key; except uninstaller   // can read values stored way in installer   setpreviousdata(previousdatakey, 'valuename', 'valuedata'); end;  function initializeuninstall: boolean; var   storedvalue: string; begin   result := true;   // read value of given key   storedvalue := getpreviousdata('valuename', 'defaultvaluedata');   msgbox(storedvalue, mbinformation, mb_ok); end; 

Comments