ThinLoader: easily run any program on a Thinstall sandbox

Discuss anything related to portable freeware here.
Message
Author
jjblackisback
Posts: 6
Joined: Tue Jun 10, 2008 5:55 am

Vista

#46 Post by jjblackisback »

Does not work in Vista.

Phobos
Posts: 4
Joined: Fri May 09, 2008 10:55 am

#47 Post by Phobos »

only the one on the first post doesn't work in vista

jjblackisback
Posts: 6
Joined: Tue Jun 10, 2008 5:55 am

#48 Post by jjblackisback »

You can also use command-line parameters to set an app that should be automatically opened when you launch ThinLoader.exe. Just use:
ThinLoader.exe choosemain
and then you're asked for where the program is. Next time you launch ThinLoader.exe, that program will be executed directly, without being asked.
This Quote is from the first post.
How does one go about this?

Thanks,
jjblack

kuihdez
Posts: 94
Joined: Sat Jun 07, 2008 4:32 am

#49 Post by kuihdez »

I can thinapp this. I only need all the code.

castman
Posts: 179
Joined: Sat Jun 28, 2008 5:41 am
Location: Brazil, Sao Paulo
Contact:

#50 Post by castman »

kuihdez

If you want to thinapp the code, you just need to compile through AutoIt (I recommend to disable UPX compression).

Make a pre-install capture, put the .exe in your root folder, post-install capture, select cmd and regedit, change folder's name from "%driveC%" to "%driveT%" and point it modifying the Package.ini.

Then the project folder is complete. After that you can compile the code through "build.bat".

kuihdez
Posts: 94
Joined: Sat Jun 07, 2008 4:32 am

#51 Post by kuihdez »

castman wrote:kuihdez

If you want to thinapp the code, you just need to compile through AutoIt (I recommend to disable UPX compression).

Make a pre-install capture, put the .exe in your root folder, post-install capture, select cmd and regedit, change folder's name from "%driveC%" to "%driveT%" and point it modifying the Package.ini.

Then the project folder is complete. After that you can compile the code through "build.bat".
gonna need more help on that. check pm. or post the autoit source in here, cause the one i used returned a problem with line 10 (endif)

castman
Posts: 179
Joined: Sat Jun 28, 2008 5:41 am
Location: Brazil, Sao Paulo
Contact:

#52 Post by castman »

Well, it's not so hard to learn AutoIt.
It is a language easy to understand.
A great XP user would only take 1 hour to understand this code by examples.
If you don't want to use the first, try this:

Code: Select all

AutoItSetOption("TrayIconHide", 1) 
If $CmdLine[0] = 0 Then 
  $var = IniRead("T:\\thinloader.ini", "ThinLoader", "Launch", "Unset") 
   If $var = "Unset" Then 
         $var = FileOpenDialog("Choose program to launch into ThinLoader sandbox", ".", "Executables (*.exe;*.scr;*.com;*.bat;*.cmd;*.pif;*.msi)|All Files (*.*)") 
         If @error Then 
            MsgBox(4096,"T:\","No File(s) chosen") 
         Else 
            Run($var) 
         EndIf 
      Else 
         Run($var) 
         If @error Then MsgBox(4096,"ThinLoader","Error executing "+$cmd+":\n"+@error) 
         EndIf 
ElseIf $CmdLine[1] = "choosemain" Then 
   If $CmdLine[0] = 2 Then 
      IniWrite("T:\\thinloader.ini", "ThinLoader", "Launch", $CmdLine[2]) 
   Else 
   MsgBox(0, "ChooseMain", "Choose the file you want to load using the main file ThinLoader.exe.") 
   $var = FileOpenDialog("Choose", "T:\","Executables (*.exe;*.scr;*.com;*.bat;*.cmd;*.pif;*.msi)|All Files (*.*)")  
      If @error Then 
         MsgBox(4096,"","No File(s) chosen") 
      Else 
         IniWrite("T:\\thinloader.ini", "ThinLoader", "Launch", $var) 
      EndIf 
   EndIf 
ElseIf $CmdLine[1] = "run" Then 
   If $CmdLine[0] = 2 Then 
      Run($CmdLine[2]) 
   Else 
   $var = FileOpenDialog("Choose program to launch into ThinLoader sandbox", ".", "Executables (*.exe;*.scr;*.com;*.bat;*.cmd;*.pif;*.msi)|All Files (*.*)") 
   If @error Then 
      MsgBox(4096,"","No File(s) chosen") 
   Else 
      Run($var) 
   EndIf 
   EndIf 
EndIf
Last edited by castman on Mon Aug 11, 2008 9:06 am, edited 1 time in total.

kuihdez
Posts: 94
Joined: Sat Jun 07, 2008 4:32 am

#53 Post by kuihdez »

When I compile the AutoIt Script, it tells me :

error at line 10.

line text : endif
error: this line does not contain a recognized action

the program will exit

castman
Posts: 179
Joined: Sat Jun 28, 2008 5:41 am
Location: Brazil, Sao Paulo
Contact:

#54 Post by castman »

Sorry to say but line 10 is Run($var) in my script code so yours is the first.

I have AutoIt allowed to run in my computer, but first I need to explain me in another topic before helping you.

Could you wait a few minutes please?

castman
Posts: 179
Joined: Sat Jun 28, 2008 5:41 am
Location: Brazil, Sao Paulo
Contact:

Sorry

#55 Post by castman »

Typing...

There's no errors when I execute the code I showed you through "AutoIt3.exe" and "AutoIt3A.exe".

Maybe it is a OS problem. I am using Windows XP SP3. I don't know if it makes difference, if not it's probably you have an outdated version of AutoIt.

I am using AutoIt Version 3.2.12.1!!

kuihdez
Posts: 94
Joined: Sat Jun 07, 2008 4:32 am

#56 Post by kuihdez »

check private message.

kuihdez
Posts: 94
Joined: Sat Jun 07, 2008 4:32 am

#57 Post by kuihdez »

maybe send me the compiled exe

kuihdez
Posts: 94
Joined: Sat Jun 07, 2008 4:32 am

#58 Post by kuihdez »

no one is interested here ?

kuihdez
Posts: 94
Joined: Sat Jun 07, 2008 4:32 am

#59 Post by kuihdez »

There you go...

http://rapidshare.com/files/138352841/T ... 2.rar.html

found this here !!!

Made With ThinApp 4.0.2 and Corrections made to the AutoIt Script.

freakazoid
Posts: 1212
Joined: Wed Jul 18, 2007 5:45 pm

#60 Post by freakazoid »

kuihdez wrote:There you go...

http://rapidshare.com/files/138352841/T ... 2.rar.html

found this here !!!

Made With ThinApp 4.0.2 and Corrections made to the AutoIt Script.
thanks for compiling... just wondering what "corrections" were made to the original?

Post Reply