Installer problem [SOLVED]
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Installer problem [SOLVED]
LC 4.5.3 windows 7
I compiled my stacks into a standalone exe with two stacks outside of the exe in order to save hi scores.
Now in the IDE the hi scores are saved when I close the hi score stack and re-open it, the compiled exe file does the same.Thats good it all works.
When I use inno setup or install creator free the hi scores stack does not save the hi scores after I close the stack then re-open it. Has anyone had this problem?
Any advice as to why welcome.
Thank you as always, Jon.
I compiled my stacks into a standalone exe with two stacks outside of the exe in order to save hi scores.
Now in the IDE the hi scores are saved when I close the hi score stack and re-open it, the compiled exe file does the same.Thats good it all works.
When I use inno setup or install creator free the hi scores stack does not save the hi scores after I close the stack then re-open it. Has anyone had this problem?
Any advice as to why welcome.
Thank you as always, Jon.
Last edited by jon on Thu Sep 13, 2012 1:40 pm, edited 2 times in total.
I dare not shake the dew drop from a rose lest I disturb the stars.
Re: Installer problem
Hi Jon,
are you sure you have write permissons in the folder where you place your standalone?
Best
Klaus
are you sure you have write permissons in the folder where you place your standalone?
Best
Klaus
Re: Installer problem
Hi Klaus
Thanks for that, sometimes it's hard to see the wood for the trees.
I had it installing into program files (*86)
Regards, Jon
Thanks for that, sometimes it's hard to see the wood for the trees.
I had it installing into program files (*86)
Regards, Jon
I dare not shake the dew drop from a rose lest I disturb the stars.
Re: Installer problem [SOLVED]
Hi Jon,
here are the folder that I use on Mac and Windows, write permission guaranteed
Hint: Create subfolder(s) here for your app!
Mac:
specialfolderpath("preferences") -> /Users/klaus/Library/Preferences
or, which should be used now according to Apple:
specialfolderpath("asup") -> /Library/Application Support
Windows (>= XP):
specialFolderPath(35) -> (some kind of prefs folder) for all users!
or
specialfolderpath(26) -> for the current user only!
Best
Klaus
here are the folder that I use on Mac and Windows, write permission guaranteed

Hint: Create subfolder(s) here for your app!
Mac:
specialfolderpath("preferences") -> /Users/klaus/Library/Preferences
or, which should be used now according to Apple:
specialfolderpath("asup") -> /Library/Application Support
Windows (>= XP):
specialFolderPath(35) -> (some kind of prefs folder) for all users!
or
specialfolderpath(26) -> for the current user only!
Best
Klaus
Re: Installer problem [SOLVED]
Thank you Klaus


I dare not shake the dew drop from a rose lest I disturb the stars.
Re: Installer problem [SOLVED]
Hi Jon,
the trick is to copy the files that need to be modified/written to to one of these folders,
when the app starts the first time!
Something like this:
Best
Klaus
the trick is to copy the files that need to be modified/written to to one of these folders,
when the app starts the first time!
Something like this:
Code: Select all
on openstack
## Files that you add via the "copy files" tab in the standalone builder ca be found in hte specialfolder("engine") on iOS
put specialfolderpath("engine") & "/your_hiscore_stack1.livecode" into tHiScoreFile
put specialfolderpath(26) & "/subfolder_of_your_app/hiscore1" into tHiScoreFileUser
## No suffix neccessary, but won't hurt of course :-)
## Check if the files have already been copied before, if not, copy them:
if there is NOT a file tHiScoreFileUser then
put url("binfile:" & tHiScoreFile) into url("binfile:" & tHiScoreFileUser)
end if
## Now your app is ready to access the hiscore stacks!
## Other openstack stuff here...
end openstack
Klaus
Re: Installer problem [SOLVED]
Thanks again Klaus
I just copied your snippet so I can go and play around with it.
This folder path stuff has me baffled but I should be able to figure it out now.

I just copied your snippet so I can go and play around with it.
This folder path stuff has me baffled but I should be able to figure it out now.

I dare not shake the dew drop from a rose lest I disturb the stars.
Re: Installer problem [SOLVED]
Yeah, go, Jon, go!jon wrote:...This folder path stuff has me baffled but I should be able to figure it out now.
