Function GetAppFolder(Param: String): String;

Started by davethomson, May 14, 2008, 01:20:31 PM

Previous topic - Next topic

Randem

Also edit the Beta.tpl file and delete everything in it, that is where the DefaultDirName change is coming from.
 
You can edit it by going to the templates tab and double clicking on it.


davethomson

I found and changed several / to . Ran Innoscript and still got the pink code:
 
[Code]
function GetAppFolder(Param: String): String;
begin
  if InstallOnThisVersion('0,6', '0,0') = irInstall then
    Result := 'C:UsersPublic'   ExpandConstant('{username}')  
  else
    Result := ExpandConstant('{pf}');
end;  
 
will this cause the InnoSetup to produce a bad .exe?

Randem

Look at this file. You have some slashes in the file that really should be backslashes. This could cause several problems.
 
let me know what this file does...

davethomson

How do I start with a new file? Do I just use another name for the output (assume I do). I am so, so frustrated at this points. I do hope you or someone can figure out why I cannot produce a workable installation .exe.
 
Do I need to install the InnoScript Upgrade or is the version I am using already have that built in?
 
I hope this attachment works for you.
 
I am still trying to figure why the Default Directory is using the Randem address on the C drive rather than the folder I specified in the Settings.
 
I am still getting this pink code when using Innoscript:
 
[Code]
function GetAppFolder(Param: String): String;
begin
  if InstallOnThisVersion('0,6', '0,0') = irInstall then
    Result := 'C:\Users\Public\'   ExpandConstant('{username}')  
  else
    Result := ExpandConstant('{pf}');
end;
 
What does this mean? And I assume that I SHOULD NOT be using InnoSetup with this file, correct? If so, what do I do? I really, really, need to have the installation .exe. so I can put an upgrade to my program on the client's new PC, which is using the XP OS.
 
(Message edited by wiseoldman on May 14, 2008)
 
(Message edited by wiseoldman on May 14, 2008)
 
(Message edited by wiseoldman on May 14, 2008)

Randem

It would be best to start with a clean project file. Many changes have gone into the later version that you may have missed.
 
Main Screen Since we are conversing about InnoScript I failed to mention it. But InnoScript's main screen. There are selection that are made there . I would need to know what they are.

davethomson

I get the pink (Added Lines) code that I posted. I have no idea what you mean by What selections have you made on the main screen? What main screen? My program, this board, InnoSetup? I have innoscript and Innoset up working just fine until, for some reason unknown to me, InnoScript stopped work. I used my registration info to get Innoscript Version 9 which is what I am using. I don't have a clue what the CODE means and what I have done to cause it. Should I start over and make a new Innoscritp file? I have three important programs that worked fine before I lost innoscript 7 something.

Randem

What Error do you get? That code come from the templates (Vista.tpl) What selections have you made on the main screen?

davethomson

I am scripting a file I have before but using version 9. I get this error Code:
 
[Code]
function GetAppFolder(Param: String): String;
begin
  if InstallOnThisVersion('0,6', '0,0') = irInstall then
    Result := 'C:\Users\Public\'   ExpandConstant('{username}')  
  else
    Result := ExpandConstant('{pf}');
end;
 
I have no idea what this means, other than it is shown as pink on the results which I find means Added Lines. I have no idea how to correct it.  
 
When I run Innoscript on the script file I see a Warning: Unsafe flag usage on file, dogfight manager.exe: The ignoreversion flag should not be used on files installed to the Windows System Directory[(sys)].
 
I have no idea what this means. Did I not set something in InnoScript that I should have set? I am using InnoScript 9 on files I have previously used. I have never seen this message on InnoSetup before.
 
I am installing the program in the folder:
 
C:/Dogfight Manager
 
Which I set in InnoScript Parameters.
 
 
 
You help is appreciated  
 
(Message edited by wiseoldman on May 14, 2008)
 
(Message edited by wiseoldman on May 14, 2008)