Sign in to follow this  
Followers 0
roronoa

how to make a single exe portable from au3

8 posts in this topic

sorry i make a new threat again

finnaly i can make some script with autoit,thx for great help here

i already make exe from au3 file,but how i can make all file to be one single file exe portable??i stuck here,best regard for a help me:)

Share this post


Link to post
Share on other sites



sorry i make a new threat again

finnaly i can make some script with autoit,thx for great help here

i already make exe from au3 file,but how i can make all file to be one single file exe portable??i stuck here,best regard for a help me:)

Hi,

I don't really understand the way you want to merge your scripts, take a look at the function FileInstall.

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

Hi,

I don't really understand the way you want to merge your scripts, take a look at the function FileInstall.

Br, FireFox.

thx for help

i try to joining two portable program.bitvise tunnelier and proxifier with autoit for a single exe,i already done with au3 and exe from au3,i need to jmerge all file include pict,tunnelier,proxifer portable etc into a single exe file portable to,wich i should to do for next step??

sorry my english not very well:)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Maybe this :

#NoTrayIcon
;this is your main exe

FileInstall("pict.exe", @ScriptDir & "pict.exe", 1) ;include this exe when compiled then extract it

ShellExecute(@ScriptDir & "pict.exe") ;execute the exe extracted

And add the two other exe.

Br, FireFox.

Edited by FireFox

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

Maybe this :

#NoTrayIcon
;this is your main exe

FileInstall(@ScriptDir & "pict.exe", @ScriptDir & "pict.exe", 1) ;include this exe when compiled then extract it

ShellExecute(@ScriptDir & "pict.exe") ;execute the exe extracted

And add the two other exe.

Br, FireFox.

i a litle confuse,i make this script,wich part in my script must input the script from u??

#include 
#include 
#include 
#include 

;untuk membuat menu d tray
Opt("TrayOnEventMode", 1)
Opt("TrayMenuMode", 3)
Global $hTray_Show_Item = TrayCreateItem("Show")
TrayItemSetOnEvent(-1, "On_Tray_Show") ;menandakan func show d tray dengan nama fungsi on_Tray_Show
TrayCreateItem("")
Global $hTray_Exit_Item = TrayCreateItem("Exit")
TrayItemSetOnEvent(-1, "On_Exit") ;menandakan func exit d tray dengan nama fungsi on_Exit


#Region ### START Koda GUI section ### Form=E:AutoItbahan autoitroronoaTG.kxf
$Form1 = GUICreate("Form1", 151, 296, 327, 220)
$Pic1 = GUICtrlCreatePic(@ScriptDir &"roronoa-zoro.jpg", 0, 0, 148, 292)
GuiCtrlSetState(-1,$GUI_DISABLE) ;berfungsi disable image supaya tombol2 bisa d klik, wajib d pakai jika menggunakan image..!!!
$START = GUICtrlCreateButton("START", 72, 16, 75, 25)
$STOP = GUICtrlCreateButton("STOP", 72, 136, 75, 25)
$HIDE = GUICtrlCreateButton("HIDE", 72, 184, 75, 25)
$EXIT = GUICtrlCreateButton("EXIT", 72, 232, 75, 25)

GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $start
start()

Case $stop
stop()

Case $hide
hide()

Case $exit
on_exit()
EndSwitch
WEnd

func start()

$HOST='s9.usassh.com'
$PORT='80'
$USER='user2024'
$PASS='usassh.com'
$Hajar = "-host="& $HOST &" -port="& $PORT &" -username=" & $USER & " -password=" & $PASS & " -proxy=n -hide=main,trayWRC,traySFTP,trayRDP,trayPopups -title=roronoa"
Sleep(1000)
Run(@ProgramFilesDir & "Bitvise Tunneliertunnelier.exe -profile=roronoa.tlp -loginOnStartup " & $Hajar, @ScriptDir, @SW_HIDE) ;EKSEKUSI BITTVISE TUNNELIER
Sleep(1000)
Run(@ScriptDir & 'Proxifier.exe', @ScriptDir,@SW_HIDE)

EndFunc

func hide()

GUISetState(@SW_HIDE, $Form1)

EndFunc


Func On_Tray_Show()

If TrayItemGetText($hTray_Show_Item) = "Show" Then ;fungsi jika d klik show d tray
; TrayItemSetText($hTray_Show_Item, "Hide")
GUISetState(@SW_SHOWNORMAL, $Form1);memunculkan form gui secara normal
;Else
; TrayItemSetText($hTray_Show_Item, "Hide")
; GUISetState(@SW_HIDE, $FormUtama)
EndIf

EndFunc

Func stop()

If ProcessExists("tunnelier.exe") Then ProcessClose("tunnelier.exe")
Sleep(100)
If ProcessExists ("Proxifier.exe") Then ProcessClose("Proxifier.exe")
Sleep(100)
FileDelete(@AppDataDir & "tunnelier.exe")
Sleep(200)
FileDelete(@AppDataDir & "Proxifier.exe")

EndFunc

Func on_exit()

Exit

EndFunc

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

@Firefox

Your sample will not work. Try to complle it and you will get an error.

Fileinstall() does not allow macros or variables for the source file. See help for fileinstall.

The source path of the file to compile. This must be a literal string; it cannot be a variable or the result of a function call. It can be a relative path (using . or .. in the path) to the source file (.au3).

FileInstall(".pict.exe", @ScriptDir & "pict.exe", 1) ;include this exe when compiled then extract it
ShellExecute(@ScriptDir & "pict.exe") ;execute the exe extracted

would be ok.

Edited by Exit

My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
Share on other sites

i a litle confuse,i make this script,wich part in my script must input the script from u??

After your includes.

@Firefox

Your sample will not work. Try to complle it and you will get an error.

Fileinstall() does not allow macros or variables for the source file. See help for fileinstall.

Of course I know it. fixed now.

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

Take a look at source code for making Virtual Box portable.

1 person likes this

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0