Searching for a file and installing to that location with Inno Setup -
i new stackoverlow , inno setup, , guess.
i trying have inno setup search file (in case wow.exe(i making interface installer)) , install folders , files directory.
for example:
- user selects world of warcraft directory
- installer copies setup directories , files world of warcraft folder
my problem:
#define myappname "orangepaw3 ui installer" #define myappversion "1.1" #define myapppublisher "orangepaw3.net" #define myappurl "http://www.orangepaw3.net" #define vclstyle "rubygraphite.vsf" [setup] ; note: value of appid uniquely identifies application. ; not use same appid value in installers other applications. ; (to generate new guid, click tools | generate guid inside ide.) appid={{56fe86a8-b8b8-42b6-a569-0d6d261af486} appname={#myappname} appversion={#myappversion} ;appvername={#myappname} {#myappversion} apppublisher={#myapppublisher} apppublisherurl={#myappurl} appsupporturl={#myappurl} appupdatesurl={#myappurl} defaultdirname={pf} defaultgroupname={#myappname} allownoicons=yes infobeforefile=c:\users\user\files\instructions2.txt infoafterfile=c:\users\user\files\instructions.txt outputbasefilename=op3 ui installer compression=lzma solidcompression=yes [languages] name: "english"; messagesfile: "compiler:default.isl" [code] // import loadvclstyle function vclstylesinno.dll procedure loadvclstyle(vclstylefile: string); external 'loadvclstylew@files:vclstylesinno.dll stdcall'; // import unloadvclstyles function vclstylesinno.dll procedure unloadvclstyles; external 'unloadvclstyles@files:vclstylesinno.dll stdcall'; function initializesetup(): boolean; begin extracttemporaryfile('{#vclstyle}'); loadvclstyle(expandconstant('{tmp}\{#vclstyle}')); result := true; end; procedure deinitializesetup(); begin unloadvclstyles; end; [files] source: "d:\world of warcraft\interface\*"; destdir: "{app}/interface"; flags: ignoreversion recursesubdirs createallsubdirs source: "d:\world of warcraft\wtf\*"; destdir: "{app}/wtf"; flags: ignoreversion recursesubdirs createallsubdirs source: vclstylesinno.dll; destdir: {app}; flags: dontcopy source: styles\{#vclstyle}; destdir: {app}; flags: dontcopy ; note: don't use "flags: ignoreversion" on shared system files [icons] name: "{group}\{cm:programontheweb,{#myappname}}"; filename: "{#myappurl}" name: "{group}\{cm:uninstallprogram,{#myappname}}"; filename: "{uninstallexe}"
sorry if above code long, did best format correctly.
how can change installer finds wow.exe on system , installs directory? world of warcraft>interface>files , wtf>files
i hope makes sense. have read on internet , confused @ point.
thank in advance.
orangepaw3
Comments
Post a Comment