You are here

Help with new application development.

8 posts / 0 new
Last post
jasonmcox
Offline
Last seen: 16 years 2 months ago
Joined: 2006-06-27 04:26
Help with new application development.

I am going to attempt to create a portable app using NSIS. To conform with the rest of portableapps.com . I have already Created the App there is only one problem. The program saves to a file and i want it to save to a file on the portable device. How will I solve changing drive letter issues as the program requires a filepath to save to.

jasonmcox@gmail.com

John Bentley
John Bentley's picture
Offline
Last seen: 15 years 1 month ago
Developer
Joined: 2006-01-24 13:26
You shouldn't save to a set

You shouldn't save to a set path. What language are you using?

-----
In a perfect world Wiis would be free.
In this world only wheees are free.

cowsay Moo
cowthink 'Dude, why are you staring at me.'

jasonmcox
Offline
Last seen: 16 years 2 months ago
Joined: 2006-06-27 04:26
python

The program is in python. It has an ini file which contains the path to save the log. In order to save the log, It accepts a save path suck as "Q:\logdir\", but not "\logdir\" this will cause the program to freeze.

Patrick Patience
Offline
Last seen: 4 years 9 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Is there anyway...

You can make the "logdir" relative to the program executable that is currently running? I'd think it would be possible.

______________________
Signature...What Signature?

jasonmcox
Offline
Last seen: 16 years 2 months ago
Joined: 2006-06-27 04:26
yes

i was able to make it relative now how do i turn it into a .paf.exe file for portableapps menu?

Patrick Patience
Offline
Last seen: 4 years 9 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Oh.

PAF.EXE is simple.

Here's what you need to do to have it in the PortableApps.comFormat (PAF)

YourExecutable.exe
 -App
  -YourExecutableName
   (Everything your program may be dependent on [libs, icons, etc] go here)
 -Data
  -settings
   (all the settings your program has go here)
 -Other
  -Source
   (YourSourceFilesGoHere)

Now, as you can see, if you ARE making this program from scratch, and not making an existing one portable, you settings should be stored in "Data\settings" which is relative from your program executable. Check into making paths relative of an executable in python if you don't know how, I'm sure something like it should be possible.

As well, your program depedencies like librarys, images, icons, etc, should probabaly be stored in "App\YourAppNamePortable" which will also be relative from your program executable, and then to promote your application on this website (or even link), it must be open source, so place your source files in "Other\Source".

I think if you choose to release the source under the GPL license is a good idea.

If you do use the GPL, you can also use the PortableApps.com Installer.

If you have any more questions about the PortableApps.comFormat, feel free to add me on MSN.

(mono_purpura[AT]hotmail[DOT]com)

Edit:So I just post over, and I missed that you are gonna use NSIS, so I assume you're making an existing App Portable, feel free to contact me at the above IM, and I can help you out.

______________________
Signature...What Signature?

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 5 days ago
Joined: 2006-01-06 21:27
.

You can also contact me via IM on ryanmccue10[at]hotmail[dot]com
You can contact me via email at ryanmccue[at]cubegames.net
----
Ryan McCue.
Blog.
So all that Airbus-delay trouble over here in Europe is because of YOU!
Simeon.

"If you're not part of the solution, you're part of the precipitate."

jasonmcox
Offline
Last seen: 16 years 2 months ago
Joined: 2006-06-27 04:26
contact

my contact is jmc314(at)hotmail(dot)com

its ready to go except one thing the ini file pathname is reletive to the drive not the application directory. so when i package this if they save it to another folder other than the portableapps folder such as root it will create a /portableapps/ folder to save the log in the /Data/logdir/ folder

Log in or register to post comments