You are here

Now have solution to rename menu entries and call batch and/or non-PortableApps apps from menu - like shortcut functionality :-)

37 posts / 0 new
Last post
SimonHF
Offline
Last seen: 15 years 3 months ago
Joined: 2007-02-01 04:53
Now have solution to rename menu entries and call batch and/or non-PortableApps apps from menu - like shortcut functionality :-)

Freeware & Open Source

Are you an enthusiastic PortableApps user? Ever wanted to rename the PortableApps menu entries? Ever wanted to create PortableApps menu entries to non-PortableApps (e.g. SecureCRT etc) applications which won't install into the PortableApps folder structure? Ever wanted to create PortableApps menu entries which execute a batch file? Well now you can with portableapps-menu-workaround.exe Smile How does it work? The portableapps-menu-workaround.exe makes copies of itself while 'cloning' the original icons & exe info from the target application to run.

Instructions for use and download link can be found here:

http://www.miscellaneousdata.de/download/portappsmenuworkaround/index.php

Example picture of modified menu:

http://www.miscellaneousdata.de/images/portableappsmenuworkaround.gif

SimonHF
Offline
Last seen: 15 years 3 months ago
Joined: 2007-02-01 04:53
When applications need a drive letter

Sometimes you're going to have an application on your USB drive which is started by a batch file and given command line parameters where a drive letter must be specified in order for the application to work properly. I ran into this problem with SecureFX. The real problem is that the USB drive drive letter can change depending on the particular Windows PC that you insert the USB drive into -- so we can't hard-code it in the batch file on the USB drive.

Using Google I found the following very useful and clever batch lines which determine the drive letter dynamically:

REM The following lines determine the current drive letter
REM Found on this webpage: http://www.frontiernet.net/~fys/batch.htm
REM In this archive: ftp://garbo.uwasa.fi/pc/link/tsbat.zip
REM In this file: 1BATFAQ.TXT
echo @echo off> volume.bat
echo set getdrv_=%%3>> volume.bat
dir | find "Volume"> go.bat
call go
if exist volume.bat del volume.bat
if exist go.bat del go.bat
::
rem show that we got it
echo Determined drive letter: %getdrv_%

SmithTech
SmithTech's picture
Offline
Last seen: 2 months 3 weeks ago
Developer
Joined: 2006-11-24 18:06
You can also use my DriveVar

You can also use my DriveVar util.
Just copy it to your usb drive and run it with the -a argument.
You can add it to a script or program like pstart to run when the script runs or pstart starts.
It will add an environment variable %PA_DRV% which can be used in place of the drive letter in ini files, shortcuts, etc.
run it with the -d argument and it will remove the environment variable so nothing is left behind.
DriveVar

SmithTech

"Because they stand on a wall and say, 'Nothing is going to hurt you tonight. Not on my watch.'" (A Few Good Men)
Coincidence is God's way of remaining anonymous.(Albert Einstein)

DRFP
Offline
Last seen: 15 years 4 months ago
Joined: 2007-02-13 07:55
how come AVG thinks your

how come AVG thinks your program is a trojan?

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 12 years 9 months ago
Joined: 2006-01-06 21:27
False Positive

AVG must be reporting false positives again. Update your virus database definitions.
----
Ryan McCue
Person 1: Oh my god. You will never believe what just happened.
Person 2: What?
Person 1: I can't remember, I've forgotten.

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

tlchost
Offline
Last seen: 1 month 2 weeks ago
Joined: 2006-08-14 08:49
SecureFX

Can you post the complete batchfile for SecureFX?

Vandyke has a nice explanation of how to run SecureCRT on a USB drive
http://www.vandyke.com/support/tips/usbdrive.html

Thanks
Thom

SimonHF
Offline
Last seen: 15 years 3 months ago
Joined: 2007-02-01 04:53
SecureFX more complicated than SecureCRT

Yes, I also followed the instructions on the VanDyke website. However, you've probably also realized that they don't work for SecureFX Sad Why? Curiously and unlike SecureCRT, SecureFX appears to need a drive letter in the SSH2.ini file. This is how I got SecureCRT & SecureFX both to work on a USB drive *and* share the same config:

Step 1: Follow the Vandyke instructions for SecureCRT for the copying onto the USB drive and creating USB drive license file etc. Do something very similar for SecureFX. Ensure that the following important folders look this this after (the following batch files require this):

u:\SecureCRT\
u:\SecureFX\Config\
u:\SecureFX\Config\Identity\
u:\SecureFX\Config\Known Hosts\
u:\SecureFX\Config\Sessions\

Step 2: Create the following batch files:

U:\LaunchSecureCRT.cmd
U:\LaunchSecureFX.cmd
U:\SecureFX\Config\SSH2-ini-usb-drive-letter-helper.cmd

The batch file content looks like this:

U:\LaunchSecureCRT.cmd

@echo off
REM SecureFX seems to require a drive letter in SSH2.ini
REM SecureCRT uses the same SSH2.ini file
call \SecureFX\Config\SSH2-ini-usb-drive-letter-helper.cmd
REM * SecureCRT launcher
REM * Allows relative paths on my removable
SET SCRT=\SecureCRT\SecureCRT.EXE
SET CONF=\SecureFX\Config
START %SCRT% /F %CONF%

U:\LaunchSecureFX.cmd

@echo off
REM SecureFX seems to require a drive letter in SSH2.ini
REM SecureCRT uses the same SSH2.ini file
call \SecureFX\Config\SSH2-ini-usb-drive-letter-helper.cmd
REM * SecureFX launcher
REM * Allows relative paths on my removable device
cd \SecureFX
START SecureFX.exe

U:\SecureFX\Config\SSH2-ini-usb-drive-letter-helper.cmd

@echo off

REM The following lines determine the current drive letter
REM Found on this webpage: http://www.frontiernet.net/~fys/batch.htm
REM In this archive: ftp://garbo.uwasa.fi/pc/link/tsbat.zip
REM In this file: 1BATFAQ.TXT
echo @echo off> volume.bat
echo set getdrv_=%%3>> volume.bat
dir | find "Volume"> go.bat
call go
if exist volume.bat del volume.bat
if exist go.bat del go.bat
::
rem show that we got it
echo Determined drive letter: %getdrv_%

REM Workaround because SecureFX also requires drive letter
REM in ssh2.ini
if not exist %getdrv_%:\SecureFX\Config\SSH2.ini.backup echo Creating back: %getdrv_%:\SecureFX\Config\SSH2.ini.backup
if not exist %getdrv_%:\SecureFX\Config\SSH2.ini.backup copy %getdrv_%:\SecureFX\Config\SSH2.ini %getdrv_%:\SecureFX\Config\SSH2.ini.backup
echo S:"Host Key Database Location"=%getdrv_%:\SecureFX\Config\Known Hosts\> %getdrv_%:\SecureFX\Config\SSH2.ini
echo S:"Identity Filename"=%getdrv_%:\SecureFX\Config\Identity\Identity.pub>> %getdrv_%:\SecureFX\Config\SSH2.ini
echo S:"[SSH1] Identity Filename"=>> %getdrv_%:\SecureFX\Config\SSH2.ini
echo D:"Show Port Forwarding Error Box"=00000001>> %getdrv_%:\SecureFX\Config\SSH2.ini
echo D:"Public Key Type"=00000000>> %getdrv_%:\SecureFX\Config\SSH2.ini
echo D:"Enable Agent Forwarding"=00000001>> %getdrv_%:\SecureFX\Config\SSH2.ini
echo D:"Add Private Keys To Agent"=00000001>> %getdrv_%:\SecureFX\Config\SSH2.ini
echo D:"Try All Agent Keys"=00000001>> %getdrv_%:\SecureFX\Config\SSH2.ini
echo D:"Enable Deprecated Gssapi"=00000001>> %getdrv_%:\SecureFX\Config\SSH2.ini
echo D:"Suppress FQDN Warning"=00000000>> %getdrv_%:\SecureFX\Config\SSH2.ini
echo D:"Check Certificate Revocation Lists"=00000000>> %getdrv_%:\SecureFX\Config\SSH2.ini
echo Wrote new: %getdrv_%:\SecureFX\Config\SSH2.ini
echo #IMPORTANT: machine generated file; update SSH2-ini-usb-drive-letter-helper.cmd instead>> %getdrv_%:\SecureFX\Config\SSH2.ini

Step 3: Use portableapps-menu-workaround.exe to add menu items to the PortableApps menu using the following txt files:

U:\PortableApps\SecureCRT\portableapps-menu-workaround.txt
U:\PortableApps\SecureFX\portableapps-menu-workaround.txt

The txt file content looks like this:

U:\PortableApps\SecureCRT\portableapps-menu-workaround.txt

appear_in_portableapps_menu_as_exe=\SecureCRT\SecureCRT.exe
process_to_start=\LaunchSecureCRT.cmd
replacement_productname=SecureCRT Portable

U:\PortableApps\SecureFX\portableapps-menu-workaround.txt

appear_in_portableapps_menu_as_exe=\SecureFX\SecureFX.exe
process_to_start=\LaunchSecureFX.cmd
replacement_productname=SecureFX Portable

Does this work for you?

SimonHF
Offline
Last seen: 15 years 3 months ago
Joined: 2007-02-01 04:53
Note about drive letter batch file and non-English XP or W2K

The batch file only works with English XP or W2K. You need to adapt it if you want it to work with a non-English XP or W2K. For example, here is a German adaptation:

REM The following lines determine the current drive letter
REM Found on this webpage: http://www.frontiernet.net/~fys/batch.htm
REM In this archive: ftp://garbo.uwasa.fi/pc/link/tsbat.zip
REM In this file: 1BATFAQ.TXT
REM Lines adapted for German XP or W2K
chcp 1252
echo @echo off> Datenträger.bat
echo set getdrv_=%%3>> Datenträger.bat
chcp 850
dir | find "Laufwerk"> go.bat
call go
chcp 1252
if exist Datenträger.bat del Datenträger.bat
if exist go.bat del go.bat
chcp 850
::
rem show that we got it
echo Determined drive letter: %getdrv_%

Note: This puts U: in %getdrv_% whereas the English version just puts U into %getdrv_%.

Ed_P
Offline
Last seen: 3 years 8 months ago
Joined: 2007-02-19 09:09
Interesting BAT file. I

Biggrin

Interesting BAT file. I haven't seen it in years.

It use to work really well but in the current Windows world has a shortcoming. The environmental variable that it sets disappears the moment the top level BAT file ends.

BTW

echo @echo off> volume.bat
echo set getdrv_=%%3>> volume.bat

can be shortened to a single line

echo @set getdrv_=%%3:> volume.bat

with the same results.

Adding a : after the %%3 results in a more effective drive letter presentation. imo

Ed

curthibbs
Offline
Last seen: 14 years 4 days ago
Joined: 2007-02-18 06:24
Easier way to get the drive letter

just use "%~d0" to get the drive letter.

Try this out... put this into a "test.bat" file and run it:

echo Drive = %~d0
echo Path = %~p0
echo File = %~f0
pause

Ed_P
Offline
Last seen: 3 years 8 months ago
Joined: 2007-02-19 09:09
In current OS's definitely.

In current OS's definitely. But it doesn't work in Win 98 and maybe not even W2K. The old BAT concept however works everywhere. [smile]

Ed

ghorian
Offline
Last seen: 15 years 2 months ago
Joined: 2007-04-26 08:09
get current drive letter

SimonHF wrote:

> I found the following very useful and clever batch lines
> which determine the drive letter dynamically...

There is a much simpler way to determine the currrent drive letter in a bat file:

set getdrv_=%~d0

Greg N.

SimonHF
Offline
Last seen: 15 years 3 months ago
Joined: 2007-02-01 04:53
Open Source declaration for portableapps-menu-workaround.exe :-)

Whoever wants the Perl source code then please just request it via e-mail:
no-spam-delete-up-to-here--simonhf-at-gmail.com

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 12 years 9 months ago
Joined: 2006-01-06 21:27
Nope

Still not fully open-source. Just add a link to a zip on the page then re-add the link here.

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

SimonHF
Offline
Last seen: 15 years 3 months ago
Joined: 2007-02-01 04:53
The link to a zip containing the ~ 100 lines of Perl script

http://www.miscellaneousdata.de/portableapps-menu-workaround-src-v1-0.zip
Ryan, I hope this fulfills all your requirements.

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 12 years 9 months ago
Joined: 2006-01-06 21:27
Great!

Thanks!

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

ReneL
Offline
Last seen: 9 years 5 months ago
Joined: 2005-12-18 02:40
Pathname errors

Hello,

I was looking for a way to rename menu entries for a long time, thank you very much!

But just my first 2 tries ended with errors.
It seems the script does not work with path names containing spaces:
"Inkscape - Best Drawing Program"

But even after renaming the folder the script failed on line 87.

I hope there will be a corrected version, soon.

Best regards and greetings from Germany,
René

J:\PortableApps\Inkscape - bestes Zeichenprogramm>portableapps-menu-workaround.exe
- starting portableapps-menu-workaround.exe v1.0
- path to executable: J:/PortableApps/Inkscape - bestes Zeichenprogramm
;- reading file: J:/PortableApps/Inkscape - bestes Zeichenprogramm/portableapps-menu-workaround.txt
- found: appear_in_portableapps_menu_as_exe: '\PortableApps\Inkscape - bestes Zeichenprogramm\inkscape.exe'
- found: process_to_start: '\PortableApps\Inkscape - bestes Zeichenprogramm\inkscape.exe'
- found: replacement_productname: 'Inkscape - Bestes Zeichenprogramm'
- checking that file exists: '\PortableApps\Inkscape - bestes Zeichenprogramm\inkscape.exe'
- checking that file exists: 'J:\PortableApps\Inkscape - bestes Zeichenprogramm\portableapps-menu-workaround-for-inkscape.exe'
- doesn't exist; creating copy of self
- copied to: 'J:\PortableApps\Inkscape - bestes Zeichenprogramm\portableapps-menu-workaround-for-inkscape.exe'
Cannot open J:\PortableApps\Inkscape - bestes Zeichenprogramm\portableapps-menu-workaround-for-inkscape.exe for reading: No such file or directory at /PerlApp/Parse/Binary.pm line 611.

J:\PortableApps\Inkscape>portableapps-menu-workaround.exe
- starting portableapps-menu-workaround.exe v1.0
- path to executable: J:/PortableApps/Inkscape
;- reading file: J:/PortableApps/Inkscape/portableapps-menu-workaround.txt
- found: appear_in_portableapps_menu_as_exe: '\PortableApps\Inkscape\inkscape.exe'
- found: process_to_start: '\PortableApps\Inkscape\inkscape.exe'
- found: replacement_productname: 'Inkscape - Bestes Zeichenprogramm'
- checking that file exists: '\PortableApps\Inkscape\inkscape.exe'
- checking that file exists: 'J:\PortableApps\Inkscape\portableapps-menu-workaround-for-inkscape.exe'
- doesn't exist; creating copy of self
- copied to: 'J:\PortableApps\Inkscape\portableapps-menu-workaround-for-inkscape.exe'
- comparing key values in: '\PortableApps\Inkscape\inkscape.exe' & 'J:\PortableApps\Inkscape\portableapps-menu-workaround-for-inkscape.exe':
Can't call method "get" on an undefined value at portableapps-menu-workaround.pl line 87.

SimonHF
Offline
Last seen: 15 years 3 months ago
Joined: 2007-02-01 04:53
Workaround for the workaround ;-)

Hi René,

Thanks for the very helpful copying and pasting. Here are my comments:
1. Copy your original "/PortableApps/Inkscape - bestes Zeichenprogramm/*" application folder to, e.g., "/PortableApps-workaround/Inkscape-bestes-Zeichenprogramm/". Why? PortableApps will create a menu item for every exe found in the "/PortableApps/Inkscape - bestes Zeichenprogramm/" folder and we don't want it to do that. Note: That we also remove the spaces from the folder name.
2. Do what you did before but use the following portableapps-menu-workaround.txt file:

appear_in_portableapps_menu_as_exe=\PortableApps-workaround\Inkscape-bestes-Zeichenprogramm\inkscape.exe
process_to_start=\PortableApps-workaround\Inkscape-bestes-Zeichenprogramm\inkscape.exe
replacement_productname=Inkscape - Bestes Zeichenprogramm

You need to end up with these two files in your 'shortcut' /PortableApps/Inkscape-bestes-Zeichenprogramm/ folder:

portableapps-menu-workaround-for-inkscape.exe
portableapps-menu-workaround.txt

Hopefully this will achieve what you want -- a PortableApps menu entry called "Inkscape - Bestes Zeichenprogramm".

Please let me know how you get on.

Best regards and greetings from Berlin Wink

3D1T0R
3D1T0R's picture
Offline
Last seen: 11 months 2 weeks ago
Developer
Joined: 2006-12-29 23:48
no spaces???

cant you just put "%20" for a space???

~3D1T0R

zacharyliu
Offline
Last seen: 15 years 3 months ago
Joined: 2006-06-29 10:39
AutoIT

My favorite way is to use AutoIT and compile to an EXE. Then you just put it in the root of the folder and that's it!

Script:

; Script Start
#NoTrayIcon
Run("\PortableApps\ProgramDir\Program.exe" "\PortableApps\ProgramDir")
; Script End

frenchfrog
Offline
Last seen: 15 years 3 months ago
Joined: 2007-02-07 11:55
Add the possibility to specify a .ico file instead of a .exe

In clear, it would be cool if appear_in_portableapps_menu_as_exe would except an .ico file.

x-rayman
Offline
Last seen: 15 years 4 months ago
Joined: 2007-02-23 12:42
Change the default Links for documents, music, video, etc

I have two USB/MP3 players which both have their own propriety folder structure. I would like the ability to mod portapps built-in shortcuts to point to my folders rather than having its own which I ignore. Does this app give you the ability to change them? Or is it for installed programs only?

SimonHF
Offline
Last seen: 15 years 3 months ago
Joined: 2007-02-01 04:53
Hello x-rayman, Thanks for

Hello x-rayman, Thanks for the question. Yes... this app allows you to work with 'non-installed' programs too. For example, have a look at the SecureCRT and/or SecureFX posts above. Neither of these apps have anything to do with PortableApps, nor are their folders 'inside' the PortableApps folder tree. Hope this helps.

vishagan
Offline
Last seen: 15 years 2 months ago
Joined: 2007-04-18 08:10
How to use the workaround for that?

How do you use the workaround to change/add folder links on the menu like x-rayman said? It would be very helpful if someone could show how.

Ed_P
Offline
Last seen: 3 years 8 months ago
Joined: 2007-02-19 09:09
???

I'm a little lost, especially the last, optional, line of code. I suspect it's purpose is to give that name to the exe it generates but it doesn't for me. Is it working for anyone else?

appear_in_portableapps_menu_as_exe=bin\qemu.exe
process_to_start=start Start-PVPM.cmd
replacement_productname=PortableVirtualPrivacyMachine

It's not a biggy, I simply manually rename the file created but am curious.

And yes an ico option would be nice. [g]

Ed

Ed_P
Offline
Last seen: 3 years 8 months ago
Joined: 2007-02-19 09:09
oops

Scratch that. Renaming doesn't work. Neither does not renaming.

The generated file works when executed directly, just not thru the PA menu, regardless of name. No way to see why its failing.

bummer

Ed

hfelton
Offline
Last seen: 6 years 11 months ago
Joined: 2006-10-12 04:59
ive seen this behavior also.

ive seen this behavior also. i can double-click on an exe (generated from batch file like described in this post), but when i "run" it from the portable-apps menu-system it just brings up the non-registered-splash-screen and does not actually run the batch file (afaict). any clues would be greatly appreciated.

hfelton
Offline
Last seen: 6 years 11 months ago
Joined: 2006-10-12 04:59
ok - instead of the

ok - instead of the quick-batch-file-compiler, i tried the demo of batch file compiler and everything seems to work correctly. icons and filename adjustable - if i start to get fancy with batch files, i may have to purchase the full license. note - i also was able to get the batch files to run with autohotkey compiling, but had no way to adjust the icons. hth, h

Ed_P
Offline
Last seen: 3 years 8 months ago
Joined: 2007-02-19 09:09
Thanks

Thanks hfelton. I tried the batch file compiler and the file it generates works. The registration screen is a little annoying but it's the price you pay for free use. [g]

Update

This utility works!!! Yea!!!! And don't let the name fool you, it works on CMD files also. And it supports ICONs!!

Batch-To-Exe-Converter

Ed

SimonHF
Offline
Last seen: 15 years 3 months ago
Joined: 2007-02-01 04:53
The third mysterious line... an explanation...

The first line tells the workaround utility to 'appear' in the PA menu like another exe that you specify. This means when the new exe is generated then the icon and exe header is copied from the exe specified on this line. Note: This exe can be the same as the one you won't to execute but it doesn't have to be. You can use any other exe... The exe specified is only used once in order to copy the icon and exe header info...

The second line... this is obvious. But if you run into problem where your batch file fails (but for example works without the PA menu) then it's probably because of drive letter issues (see above in this thread).

The third line (the mysterious one) replaces the 'productname' in the exe header. The productname is not the same as the filename. Normally the productname gets set using the first line (see above in this e-mail) by copying over the exe header from the exe specified. However, the PA menu displays the productname from the exe header (which has nothing to do with the filename). So if you want to tweak the productname -- and therefore the exact text that is shown in the PA menu -- for the newly generated exe then you can do it with the third line Smile

What is an exe header? All exe files have one and it lives 'invisibly' inside the exe file. Normally it can only be seen programmatically.

Ed_P
Offline
Last seen: 3 years 8 months ago
Joined: 2007-02-19 09:09
Thank you

Hello SimonHF. Thank you for taking the time to explain your app to me. Unfortunately it didn't work for me the way it works for you. The app name that showed up in the PortableApps menu was always something in the format "portableapps-menu-workaround-programname.exe" which I didn't like. The other thing that was frustrating was when executing the strangely named app from the menu was the command window that would flash on the screen and then nothing would happen. Even putting a PAUSE command at the top of my CMD file before converting it didn't stop the problem. And doing Print Screens on a notebook to get some hint as to the problem was an additional challenge.

I'm sure when properly setup and configured your app works fine but for some of us hackers it's a challenge. [g] An easier way to debug/see error msgs would be most helpful. Knowing the point of reference the portableapp menu uses when it executes an app would have been helpful also but that's not your problem.

FWIW By folder structure was:

\
|
PortableApps
|
__PVPM
|
____bin

My last portableapps-menu-workaround.txt was:

appear_in_portableapps_menu_as_exe=Start-PVPM.cmd
process_to_start=start Start-PVPM.cmd
replacement_productname=PortableVirtualPrivacyMachine

And my Start-PVPM.cmd file was:

@ECHO OFF&Title=Start QEMU and DSL (Damn Small Linux)&MODE CON LINES=20 COLS=80

REM Small enough to fit on a USB stick.
REM http://www.metropipe.net/pvpm.php

setlocal
::pause
set KQemu=no
:: if the KQemu accelerator is installed, change this to yes.

SET SDL_VIDEODRIVER=windib
SET SDL_AUDIODRIVER=dsound
SET QEMU_AUDIO_DRV=dsound

echo.
echo This CMD file starts QEMU on any Windows pc then DSL within QEMU.  
echo You can then start Firefox or an email client, surf the web or do 
echo email and leave without a trace on the host's machine. :-)
echo.
echo.
echo Notes:
echo.
echo Press Ctrl+Alt to return mouse from QEMU desktop to Windows desktop
echo.
echo For Metropipe's Tunneler Activation press Enter for Username and Activation Key
echo.
echo Firefox takes a while to invoke without an accelerator running on the host.
echo.
if %Kqemu%==no (
   echo KQemu accelerator not being used
   echo.
   
\PortableApps\PVPM\bin\qemu.exe -hda \PortableApps\PVPM\bin\metropipe.img -L \PortableApps\PVPM\bin -boot c -m 256 -localtime -M pc -no-kqemu
) else (
   net stop  kqemu
   net start kqemu
   .\bin\qemu.exe -hda .\bin\metropipe.img -L .\bin -boot c -m 256 -localtime -M pc 
   net stop  kqemu
)

endlocal

The current exe, which works from the menu, used the same cmd file as input.

Thanks again for trying to explain.

Ed

niolonra
niolonra's picture
Offline
Last seen: 9 years 2 days ago
Joined: 2006-11-30 19:42
Subst command

I don't remember where I found this, but I use a batch file with

subst U: \.

to make the portable drive always be the U:\ drive. For things that need a folder location hardcoded, this helps...
Rich

buddy2z
Offline
Last seen: 15 years 2 weeks ago
Joined: 2007-03-04 21:30
I have tried to rename my

I have tried to rename my apps many times, but still have not been successful. Can somebody please create a template for me so I can just fill in all of the info? Do I need the PortableApps beta menu to do this or the regular one, or does it not matter? Thank You.

Please pardon my English, I'm from Wisconsin.

Simeon
Simeon's picture
Offline
Last seen: 7 years 8 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Just wait

for the new menu.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

dafunkydan
Offline
Last seen: 15 years 3 weeks ago
Joined: 2007-06-11 06:14
Can´t get the Patch run :-(

Hi everybody,
Hi SimonHF,

first of all: Hello to the Community! Second: What a great application PortableApps is! Or at least: would be, if the Menu could be more customizable. Now that i found that Patch everything should be fine - but unfortunatly it ain´t Beee

I followed the Instructions on the Page, but it didn´t work out at all. I tried many Variations and had a look at the Status-Output. The Variation that worked most was to give absolute Paths inside the *.txt-File. Let me show you the File:
appear_in_portableapps_menu_as_exe=C:\PortableApps\PortableApps\ZoomIt\ZoomIt.exe
process_to_start=C:\PortableApps\PortableApps\ZoomIt\ZoomIt.exe
replacement_productname=Zoom It

And the output on the command-line was the following:
C:\PortableApps\PortableApps>portableapps-menu-workaround.exe
- starting portableapps-menu-workaround.exe v1.0
- path to executable: C:/PortableApps/PortableApps
;- reading file: C:/PortableApps/PortableApps/portableapps-menu-workaround.txt
- found: appear_in_portableapps_menu_as_exe: 'C:\PortableApps\PortableApps\ZoomIt\ZoomIt.exe'
- found: process_to_start: 'C:\PortableApps\PortableApps\ZoomIt\ZoomIt.exe'
- found: replacement_productname: 'Zoom It'
- checking that file exists: 'C:\PortableApps\PortableApps\ZoomIt\ZoomIt.exe'
- checking that file exists: 'C:\PortableApps\PortableApps\portableapps-menu-workaround-for-ZoomIt.exe'
- doesn't exist; creating copy of self
- copied to: 'C:\PortableApps\PortableApps\portableapps-menu-workaround-for-ZoomIt.exe'
Cannot open C:\PortableApps\PortableApps\portableapps-menu-workaround-for-ZoomIt.exe for reading: No such file or directory at /PerlApp/Parse/Binary.pm line 611.

It seem the Problem comes out when creating the portableapps-menu-workaround-for-ZoomIt.exe. What can I do to get it run? Please help me, any suggestion is very appreciated!

Much greetings, Dafunkydan

Joble
Joble's picture
Offline
Last seen: 13 years 9 months ago
Joined: 2007-05-03 12:46
Why not

just make a launcher that opens a .bat file? Here's a very simplified version that executes run.bat in the same directory as the launcher:

SilentInstall Silent ; start as launcher, not as installer
AutoCloseWindow True ; automatically close when finished
Section "Run This Batch File"
Exec '"$EXEDIR\run.bat"'
SectionEnd
OutFile "Scratch-Portable.exe"

And here's the run.bat file:

@echo off
Title Scratch
cd \portableapps\scratchportable\scratch
start scratch.exe
exit

You can then rename the launcher and edit the batch file to run whatever you want in the future.

Have an Awesome Day!

Dragon9
Offline
Last seen: 14 years 6 months ago
Joined: 2007-12-26 18:02
Replacement_Productname doesn't work-?

This program does indeed get non-.paf.exe's portable apps onto the PortableApps menu, and the shortcuts launch the desired program (which work), but following the example of the .txt files you have to create I cannot get the shortcut name on the menu to change to what I want it, it still pastes in the default program name. I have tried it with Free Download Manager (creating the portable version from the Lite version), CCleaner and Converber and all of them use the default name. The line in the textfile for an attempted shortcut rename for FDM, for instance, is replacement_productname=Free Download Mgr Port v.2.5.737, and what comes out is "Free Download Manager." Since everything else works but the shortcut rename, is there something I am doing wrong about this or does this really not work (for some portable apps)? Thanks for clarifying. Ron

Topic locked