A portable application can be run from a removable drive (USB flash drive, iPod, portable hard drive, etc) on any Windows computer without installation.
You will carry the program with settings on removable drive and don't modify settings on host computer.
On Vista and above turn off User Account Control (UAC) or run launcher as admin.


26 commentaires:
Hi Bernat,
Can you show the sources for LastComputer?
Function CheckComputer # Called in Section "Main" after CheckStart
StrCpy $0 $WINDIR 3
!define GetVolumeInformation "Kernel32::GetVolumeInformation(t,t,i,*i,*i,*i,t,i) i"
System::Call '${GetVolumeInformation}("$0",,${NSIS_MAX_STRLEN},.r0,,,,${NSIS_MAX_STRLEN})'
ReadINIStr $1 "$EXEDIR\Data\${APP}Portable.ini" "${APP}Portable" "LastComputer"
${If} $0 == $1
${Else}
Delete "$EXEDIR\Data\${APP}\Program Options.dat"
RMDir "/r" "$EXEDIR\Data\${APP}\Analyzed Programs"
Delete "$EXEDIR\Data\${APP}\Installed Programs.*"
RMDir "/r" "$EXEDIR\Data\${APP}\System Snapshots"
MessageBox MB_USERICON "Computer changed, register again:$\nSarah Snell$\nS6VX-768Y-JTMS-ALKP-2BD2-97EA-FE5A-0062"
${EndIf}
CreateDirectory "$EXEDIR\Data"
WriteINIStr "$EXEDIR\Data\${APP}Portable.ini" "${APP}Portable" "LastComputer" "$0"
FunctionEnd
Thanks Bernat.
I've tried but always failed lol.
Can you share the sources? :)
Online installer updated with sources.
Thanks Bernat as always,
I appreciate all the work you do.
Great app.
btw thanks :)
Something is wrong with mine..
After showed your SplashScreen, the main program showed up once(less than a second), then closed, then it showed up again.
But it said Unregistered, 30 days trial...
What should I do..
(WinXP Pro SP3 with all MS updates applied)
The best version for XP is 4.10.
Hi Bernat.
Tanks for your Source
Where can I find "MyXML.nsh", it is not attached to your source?
XML Unicode.
I think Tu.exe and TuAgent.exe need to be blocked via firewall in order to keep the license working, else you're done. Also you need to make sure you didn't have it installed on your computer before.
You can try this, it works for me:
1. Run Total Uninstall and double click Total Uninstall in left pane to analyse it.
2. After analysing in done, look in right pane and look for Registry entries found
3. Go down to HKEY_USERS and look for the last foldr in that tree called “Count”
4. Delete any HRZR…… in that folder by right clicking and selecting “delete completely” from menu. (THIS IS IMPORTANT) All the other registry entries for this program are unimportant.
5. Now delete the program as you normally would.
6. Lastly, click Start button, click Search then select C: drive (or whatever drive it is installed on) and type in this search string “Martau” and delete anything related to that search result including files and folders. Next, do a second search for “Total Uninstall” (you’ll probably find nothing at this point but do it anyway) delete file or folder related to that search result.
Now download again Bernat's version and try again.
Hi Bernat.
I downloaded your XML.7z which contains (CallANSIPlugin.nsh, MyXML,XML) and I'm trying to portablize Keepass Password Safe 2.20 found at keepass.info.
I'm trying to follow your source code from Total_Uninstall_Portable to write or create an .xml and used this command ${XMLWriteText} "$EXEDIR\Data\${APP}\Keepass.xml" but Nsis report of invalid code.
Do I need any XML plugin to make it work? I've put all .NSH files in _Include folder.
Any ideas?
Thanks in advance.
You must use NSIS Unicode with XML plug-in (for xml.dll) and extract the 3 .nsh in the Include folder of NSIS Unicode (overwrite existing XML.nsh)
Thanks a million Bernat,
I really appreciate everything you do.
THANKS again.
To write in XML files I think better to use nsisXML than MyXML (12 kB vs 120 kB dll, don't need including .nsh and ANSI-Unicode)
Source updated in online installer.
This is great.
I learn a lot from you everyday. Just
downloaded online installer and it's very compact compare to the first one.
Thanks for you time. Appreciated!
Thanks..
v6.2.1 works in my old XP system now
Hi Bernat,
Are you forget this?
http://img577.imageshack.us/img577/3323/20130524075037.png
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\TuMonitor
I have not this key left on my computer.
The path in data of Icon show that this key is created by the setup of TU but not by TU portable running.
Serial is blocked when connected to the internet.
Using block host: doesn't work.
Using firewall: TU said: cannot verify the serial.
The best way for me is don't run when connected to the internet.
May this is will be usefull:
Dialer::GetConnectedState
Pop $0
StrCmp $0 "online" "" +3
MessageBox MB_OKCANCEL|MB_USERICON `You are connected to the internet, serial may be blocked.$\nContinue anyway?` IDOK +2
Abort
No problem for me being connected to the internet (XP SP3 32, 7 SP1 64 and 8 64) with 6.3.0 (6.3.1 don't run).
Wew... creating $APPDATA\RestartApp.exe and lock file using FileOpen is work like a charm :lol:
Because if serial blocked, Tu.exe cannot restart itself without RestartApp.exe
But I get freeze for first run and if serial blocked, it says Licensed to "" and not Licensed to PortableAppZ
http://img401.imageshack.us/img401/4963/z4az.png
I think the best way to lock file is:
FileOpen $LOCKEDFILE "FileToBeLock" ; in Init
FileClose $LOCKEDFILE ; in Close
because using SetFileAttributes: locked file still can be deleted
Keep up your good work Bernat.
Thanks Bernat as always for the work you do.
I'm just curios to know if you're installing Total Uninstaller which app do you use to monitor.
I usually use Total Uninstaller to monitor all my apps.
Bye for now,
George
I use too Total Uninstall to monitor and it is the only program I don't monitor.
Hi Bernat,
This is out of topic but I've learned from your sources and use as template to create my personal portables. Of late everything is going well except Revo Uninstaller Pro http://avxhome.se/software/software_type/utilities/Uninstallers/Revo.Uninstaller.Pro.3.1.5.html. The problem is the $SYSDIR\drives\revoflt.sys does not register no matter what I do. I think its service type so I tried !define SRC1 and the driver is copied to $SYSDIR\drives but still not registered. I tried RegDLL and nothing seems to work. Any help will be appreciated. MERRY CHRISTMAS.
Thanks in advance.
Post a Comment