You are here

Question...

5 posts / 0 new
Last post
lucian892
Offline
Last seen: 17 years 1 week ago
Joined: 2007-05-31 19:17
Question...

I just made my Partition Magic 8.0 portable. However, whenever used in conjunction with the PortableApp's menu, the entire directory of files shows up in the list of applications. Is there a loader program I can use to link to PMagic.exe in a subfolder? This is what I am thinking:

Thumb:\PortableApps\PartitionMagicPortable\App\PMagic.exe
Thumb:\PortableApps\PartitionMagicPortable\LOADER.exe (points to PMagic.exe so all the files aren't shown in the PortableApps Menu)

Gamer239
Offline
Last seen: 17 years 5 months ago
Joined: 2007-04-15 00:04
Seems Correct

to take care of the problem you use a launcher template and put it in john's format of {name of folder}\app and include {name of folder}\data {name of folder}\other. compile it w/ nsis. point the template exe to the name of your exe that want to run.

Patrick Patience
Offline
Last seen: 5 years 1 month ago
DeveloperModerator
Joined: 2007-02-20 19:26
Here...

This should work, take the following...

;Copyright (C) 2004-2006 John T. Haller

;This software is OSI Certified Open Source Software.
;OSI Certified is a certification mark of the Open Source Initiative.

;This program is free software; you can redistribute it and/or
;modify it under the terms of the GNU General Public License
;as published by the Free Software Foundation; either version 2
;of the License, or (at your option) any later version.

;This program is distributed in the hope that it will be useful,
;but WITHOUT ANY WARRANTY; without even the implied warranty of
;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;GNU General Public License for more details.

;You should have received a copy of the GNU General Public License
;along with this program; if not, write to the Free Software
;Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

!define NAME "PartitionMagicPortable"
!define FRIENDLYNAME "Partition Magic Portable"
!define APP "Partition Magic"
!define VER "1.0.0.0"

;=== Program Details
Name "${NAME}"
OutFile "${NAME}.exe"
Caption "${FRIENDLYNAME}"
VIProductVersion "${VER}"
VIAddVersionKey ProductName "${FRIENDLYNAME}"
VIAddVersionKey Comments "Allows ${APP} to be run from a removable drive."
VIAddVersionKey CompanyName "Lucian Adamson"
VIAddVersionKey LegalCopyright "Lucian Adamson"
VIAddVersionKey FileDescription "${FRIENDLYNAME}"
VIAddVersionKey FileVersion "${VER}"
VIAddVersionKey ProductVersion "${VER}"
VIAddVersionKey InternalName "${FRIENDLYNAME}"
VIAddVersionKey OriginalFilename "${NAME}.exe"
;VIAddVersionKey PrivateBuild ""
;VIAddVersionKey SpecialBuild ""


;=== Runtime Switches
CRCCheck On
WindowIcon Off
SilentInstall Silent
AutoCloseWindow True
RequestExecutionLevel user

;=== Program Icon
Icon "${NAME}.ico"

Section "Main"
	SetOutPath '$EXEDIR\App\PartitionMagic'
	Exec '$EXEDIR\App\PartitionMagic\PMagic.exe'
SectionEnd

Create a folder name "Partion Magic" wherever you'de like.

Paste all the text within that box into Notepad, save it as PartitionMagicPortable.nsi to the folder you just created, and make sure "Save as Type" is set to "All Files".

Now, in the same directory put the partition magic icon, it should be called "PartionMagicPortable.ico". If you don't know how to get the icon, you can try downloading IcoFX (Google it), and going to File->Extract, then open PMagic.exe, and extract the main icon. Save it as what I just said in the folder you made.

Now, download NSIS Portable and extract it. Run the program and drag and drop "PartionMagicPortable.nsi" into the open NSIS window, it should compile with no errors, now you just have to put it in the format with the folder setup you mentioned in your original post. Make sure it's App\PartitionMagic\PMagic.exe as the setup of your folders, and the launcher goes in the same directory as the App folder.

Note, make sure you save it properly in notepad, NOT as a text file. Hope this works for you.

_____________________________
I felt so different without a signature.

lucian892
Offline
Last seen: 17 years 1 week ago
Joined: 2007-05-31 19:17
Thank you "have some patience"

Thanks for the code for NSIS.. helped me out a lot!

-lucian

-lucian

Patrick Patience
Offline
Last seen: 5 years 1 month ago
DeveloperModerator
Joined: 2007-02-20 19:26
Not a proplem.

But in the beggining, it's all John Haller's work, just gotta give him some credit.

_____________________________
I felt so different without a signature.

Log in or register to post comments