Page 1 of 1

Target Folder Problem With me

Posted: Tue Sep 06, 2011 11:04 pm
by alfrqan
hello
I am Facing Problem In Target Folder,I set My target Folder to C:\Sierra\Empire Earth
but when i click Browse while choosing installer Direction lets say i selected folder inside sierra
C:\sierra\Newfolder it will add auto Empire Earth Directory so it will be like this C:\sierra\Newfolder\Empire Earth ,how i can stop adding Empire Earth folder to my selected Direction?
I am noob in Scripting
Image
I found Older post but no one answered it...Any help plz?

Re: Target Folder Problem With me

Posted: Wed Sep 07, 2011 9:31 am
by giaviv
Is Empire Earth the name of your installer?

Re: Target Folder Problem With me

Posted: Wed Sep 07, 2011 11:43 pm
by alfrqan
no,the name of installer is alpha 1.5.exe
but it is added,i dont know why..

Re: Target Folder Problem With me

Posted: Thu Sep 08, 2011 12:20 am
by alfrqan
Now i solved it in only the 3 cases of "IF" as the picture but Else Still
Image
so if 1 folder exists and when i click browse it works well and nothing gonna be added to chosen direction but if that all 3 folders not exist so it is gonna read
registery and return the value into TargetDir but when i Click Browse I will get the chosen Direction/Empire Earth
I need to stop adding /empire earth while choosing directions...For ur Information Read Registery is Direction of the game Mostly is like this "Drive:/.../Empire Earth/"..I get the DIrection very well but lets say As user,i found it not the correct Direction so i have to choose the right Direction so i would click browse and choose other folder.when i choose other folder it will add Empire Earth to it..
I hope i Explained good

Re: Target Folder Problem With me

Posted: Thu Sep 08, 2011 12:11 pm
by giaviv
I am a little confused - what exactly is the problem / what is happening not as expected?

Re: Target Folder Problem With me

Posted: Thu Sep 08, 2011 12:42 pm
by alfrqan
giaviv wrote:I am a little confused - what exactly is the problem / what is happening not as expected?
friend,when i choose direction i will get the chosen direction + Empire Earth so it is gonna look like chosen direction/Empire Earth i dont know why the Empire Earth is fixed in any direction,and this happen in case 4 in reading the registery only but in other cases this never heppen!
thanks
waiting ur reply

Re: Target Folder Problem With me

Posted: Fri Sep 09, 2011 8:37 am
by giaviv
Okay, what's Empire Earth? What does it mean in the context of your installer / program?