You are here

Making PhotoScape Portable

21 posts / 0 new
Last post
jliddil
Offline
Last seen: 12 years 7 months ago
Joined: 2010-06-03 22:03
Making PhotoScape Portable

I am a Newbie
I am trying to make a portable version of Photoscape for personal use.

I am using the PAL

The launcher gets created but it he log I get a bunch of code and this:

2 warnings:
!include: could not find: "C:\Program Files\PhotoScape\Other\Source\PortableApps.comLauncherCustom.nsh" (Segments.nsh:122)
!include: could not find: "C:\Program Files\PhotoScape\Other\Source\PortableApps.comLauncherDebug.nsh" (Debug.nsh:87)

I am completely lost

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 9 months ago
Joined: 2007-04-15 21:08
Don't worry

You don't need to worry about those two warnings. They just indicate that you haven't got any custom code or debugging code - both of which are advanced features of PAL. Go ahead and work with your launcher configuration and it should all work fine. Smile

Also it's a bad idea to ever work in C:\Program Files; on Vista/7 it's a restricted directory with UAC stuff and it causes trouble for most portable apps.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

jliddil
Offline
Last seen: 12 years 7 months ago
Joined: 2010-06-03 22:03
re:making Photoscape Portable

I am on Windows XP SP3

I try to run it I get:

Photoscape Portable Cannot be started. You may wish to re-install to fix this issue. (ERROR: App\PhotoScape\Photoscape.exe could not be found

appinfo.ini
[Format]
Type=PortableApps.comFormat
Version=2.0

[Details]
Name=PhotoScape Portable
AppID=PhotoScapePortable

[Control]
Icons=1
Start=PhotoScapePortable.exe

PhotoScapePortable.ini
[Launch]
ProgramExecutable=PhotoScape\PhotoScape.exe

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 9 months ago
Joined: 2007-04-15 21:08
Missing or wrong path

That error message is exactly what it says: the file App\PhotoScape\Photoscape.exe doesn't exist. Either you've got the wrong path or you haven't got the PhotoScape files in there.

Also be aware that just putting in [Launch]:ProgramExecutable doesn't make an app portable; the onus of making the app portable is still on you (as the developer), to find out what needs doing and set the appropriate options.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

jliddil
Offline
Last seen: 12 years 7 months ago
Joined: 2010-06-03 22:03
I'm Hopeless

So I created the following

C:\PhotoScape Portable
App
AppInfo
Launcher
Photoscape (This directory now contains the photoscape.exe and other files.

In the Launcher directory I have appicon.ico and appinfo.ini
[Format]
Type=PortableApps.comFormat
Version=2.0

[Details]
Name=PhotoScape Portable
AppID=PhotoScapePortable

[Control]
Icons=1
Start=PhotoScapePortable.exe

The PhotoScapePortable.ini is:

[Launch]
ProgramExecutable=App\PhotoScape\PhotoScape.exe

So now when I attempt to run the program I get:

(ERROR: C:PhotoScape Portable\App\PhotoScape\App\AppInfo\appinof.ini could not be found)

OK so why is it now looking here? I am TOTALLY confused by what path to use and how to set it.

Tim Clark
Tim Clark's picture
Offline
Last seen: 13 years 6 days ago
Joined: 2006-06-18 13:55
Logic ?

Please note that I am not a dev [or a devwannbe] but it seems to me logically that this does not make sense:

You said you created:
"C:\PhotoScape Portable"
and:
"In the Launcher directory I have appicon.ico and appinfo.ini"

Logically "C:\PhotoScape Portable" is the launcher directory.

[note below I believe "appinof.ini is a typo for "appinfo.ini if not, that itself could be the problem]
BUT the error says:
ERROR: C:PhotoScape Portable\App\PhotoScape\App\AppInfo\appinof.ini could not be found

So the app is looking for appinof.ini in:
C:\PhotoScape Portable\App\PhotoScape\App\AppInfo\
NOT
C:\PhotoScape Portable\

Does that make sense?

Therefore:
appinfo.ini should be in:
C:\PhotoScape Portable\App\PhotoScape\App\AppInfo\
and I believe appicon.ico as well.

Note: I am not sure this is Really the correct place for those files to be, but it is where the Launcher is looking for them.

I believe, but am not sure, that:
C:\PhotoScape Portable\App\AppInfo\
might be what you really want, but, again that is not where the launcher is looking.

Tim

[edit: The replies form solanus and sar3th below don't really make a lot of sense to me but they are more accomplished at this than I am]

Things have got to get better, they can't get worse, or can they?

solanus
solanus's picture
Offline
Last seen: 9 years 6 months ago
Joined: 2006-01-21 19:12
Looks like the path in your PhotoScapePortable.ini is the issue.

According to the manual, the variable should be relative to the App folder, so you shouldn't include that in your path.
So,

[Launch]
ProgramExecutable=PhotoScape\PhotoScape.exe

I made this half-pony, half-monkey monster to please you.

solanus
solanus's picture
Offline
Last seen: 9 years 6 months ago
Joined: 2006-01-21 19:12
Check out the correct Format Specs

https://portableapps.com/development/portableapps.com_format
says that the correct file structure is

PhotoScapePortable
+ App
  + AppInfo
     - appinfo.ini 
     - appicon.ico
  + PhotoScape
  + DefaultData
+ Data
+ Other
  + Help
    + Images
  + Source

If you are using the PortableApps Launcher, then the Launcher files are also in AppInfo.

You shouldn't have to put the Launcher or Portable Apps ini files into the PhotoScape folder.

Also, the typical convention is to NOT use spaces in the folder names. So make it "PhotoScapePortable", not "PhotoScape Portable". This won't affect the display in the menu - that's controlled by the "Name" variable in the appinfo.ini file, and there you can use spaces. Also don't use spaces in the "AppID" variable.

I made this half-pony, half-monkey monster to please you.

sar3th
sar3th's picture
Offline
Last seen: 10 years 2 months ago
Joined: 2009-02-13 03:57
Final Version

In Addition to that, create a subdirectory under AppInfo, name it "Launcher" and put your PhotoScapePortable.ini there.
It should contain this (note, it's different from what you had):
[Launch]
ProgramExecutable=PhotoScape\PhotoScape.exe

In the end, your directory structure looks as follows:
In Addition to that, create a subdirectory under AppInfo, name it "Launcher" and put your PhotoScapePortable.ini there.
It should contain this (note, it's different from what you had):
[Launch]
ProgramExecutable=PhotoScape\PhotoScape.exe

In the end, your directory structure looks as follows:

PhotoScapePortable
  - PhotoScapePortable.exe
  + App
    + AppInfo
      - appinfo.ini 
      - appicon.ico
      + Launcher
        - PhotoScapePortable.ini
    + PhotoScape
      - PhotoScape.exe

[This reply was modified, as below, per sar3th, by Mod Tim]

jliddil
Offline
Last seen: 12 years 7 months ago
Joined: 2010-06-03 22:03
ONe more time

I have this
PhotoScapePortable
+ App
+ AppInfo
- appicon.ico
- appinfo.ini
+ Launcher
- PhotoScapePortable.ini
+ PhotoScape
- Photoscape.exe
- PhotoScapePortable.exe

Which now gives me PortableApps.com Launcher cannot be started. You May wish to reinstall to fix this issue. (ERROR: C:PhotoScapePortable\App\App\AppInfo\appinfo.ini could not be found

Here is the current appinfo.ini

[Format]
Type=PortableApps.comFormat
Version=2.0

[Details]
Name=PhotoScape Portable
AppID=PhotoScapePortable

[Control]
Icons=1
Start=PhotoScapePortable.exe

PhotoScapePortable.ini

[Launch]
ProgramExecutable=PhotoScape\PhotoScape.exe

sar3th
sar3th's picture
Offline
Last seen: 10 years 2 months ago
Joined: 2009-02-13 03:57
Sorry, i had an error

Due to a wrong spacing, my directory structure suggested a wrong place for PhotoScapePortable.exe. The right place is in \PhotoScapePortable\, not in \PhotoScapePortable\App. Sorry

jliddil
Offline
Last seen: 12 years 7 months ago
Joined: 2010-06-03 22:03
Did That

Error: C:\PhotoScapePortable\App\PhotoScape\App\Appinfo.ini could not be found

sar3th
sar3th's picture
Offline
Last seen: 10 years 2 months ago
Joined: 2009-02-13 03:57
This Error-Message suggests

This Error-Message suggests that your PhotoScapePortable.exe is still located at PhotoScapePortable\App\PhotoScape\PhotoScapePortable.exe and not in PhotoScapePortable\PhotoScapePortable.exe
Please verify that PhotoScape.exe is located at PhotoScapePortable\PhotoScapePortable.exe

jliddil
Offline
Last seen: 12 years 7 months ago
Joined: 2010-06-03 22:03
Confirmed

C:\PhotoScapePortable\PhotoScapePortable.exe

sar3th
sar3th's picture
Offline
Last seen: 10 years 2 months ago
Joined: 2009-02-13 03:57
Thanks. I'm sorry if I

Thanks. I'm sorry if I sounded a bit harsh in my last reply, but I wanted to make absolutely sure we are on the same train.
Can you also verify that your appinfo.ini and PhotoScapePortable.ini are in the right places?
PhotoScapePortable\App\AppInfo\appinfo.ini
PhotoScapePortable\App\AppInfo\Launcher\PhotoScapePortable.ini
Thanks

jliddil
Offline
Last seen: 12 years 7 months ago
Joined: 2010-06-03 22:03
Not offended

No big deal. I'll take all the help I can get:

C:\PhotoScapePortable\App\AppInfo\Launcher\PhotoScapePortable.ini
C:\PhotoScapePortable\App\AppInfo\appinfo.ini

jliddil
Offline
Last seen: 12 years 7 months ago
Joined: 2010-06-03 22:03
OK I feel really dumb

It helps to run the application once BEFORE you try to make it portable. Now it works. Thanks for all the help from everyone. Doh. Bang head against desk

sar3th
sar3th's picture
Offline
Last seen: 10 years 2 months ago
Joined: 2009-02-13 03:57
No problem. So your problems

No problem. So your problems are all fixed now and it works fine?

jliddil
Offline
Last seen: 12 years 7 months ago
Joined: 2010-06-03 22:03
seems to work

copied it over to my usb drive and it seems to work as expected

Darkbee
Darkbee's picture
Offline
Last seen: 3 years 11 months ago
Joined: 2008-04-14 09:41
On one computer only?

I don't want to muddy the waters but it sounds like all you did was run the original program which then created registry entries, enabling your "portable" version to then run. Chances are if you now try your portable version on a different computer it won't work. Doesn't sound like you have a very portable application to me. I think one of the mods said in an early post that you have to know where the original writes its settings to (in the registry) in order to simulate that behavior for the portable version.

jliddil
Offline
Last seen: 12 years 7 months ago
Joined: 2010-06-03 22:03
You are correct

From what I can find it does not write to the registry but it does create two .cfg files in C:\Documents and Setting\User\Application Data\Photoscape

So yes still some work to do, but it basically works on any machine I've tested it on at home and work

Log in or register to post comments