Creating Installer with 7zip SFX exe - without using Temp

Helpful script writing tricks and HowTo's
User avatar
Taurus
Posts: 48
Joined: 20 Jan 2015, 10:31

Creating Installer with 7zip SFX exe - without using Temp

23 Feb 2015, 09:30

Hey guys,

Edit 17.06.2015:
This is the best solution, ready to use for everybody:

Thx to all posters below and big Thx to HotKeyIt!
How to use: Just download it and copy the first part to your script


Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus




But i have a new Problem:

1) It's not working if i have special characters in the exe-filename. (not very important)

2) It's not working if i have 2 or more exe included. Only the first one is installed, the second fail. Any ideas? (important)
Last edited by Taurus on 17 Jun 2015, 09:50, edited 2 times in total.
Dev for a better world :) > PHP for Web > AHK H for Local > with KISS (Keep it Short and Simple) on Win 10 Pro (Version 1709) x64
User avatar
Soft
Posts: 174
Joined: 07 Jan 2015, 13:18
GitHub: visionary1
Location: Seoul
Contact:

Re: Creating Installer with 7zip SFX exe - without using Tem

23 Feb 2015, 21:02

use Enigma VirtualBox packer to add resources virtually, or use bxsdk.dll to virtualizes directory
AutoHotkey & AutoHotkey_H v1.1.22.07
tmplinshi
Posts: 1147
Joined: 01 Oct 2013, 14:57

Re: Creating Installer with 7zip SFX exe - without using Tem

23 Feb 2015, 22:55

By the way, does anybody know, if we are able to use the exe without copying it to the ClipboardAll?

BinRun by HotkeyIt.
User avatar
Taurus
Posts: 48
Joined: 20 Jan 2015, 10:31

Re: Creating Installer with 7zip SFX exe - without using Tem

24 Feb 2015, 09:10

Perfect, Thx! I will test it.
Dev for a better world :) > PHP for Web > AHK H for Local > with KISS (Keep it Short and Simple) on Win 10 Pro (Version 1709) x64
User avatar
Taurus
Posts: 48
Joined: 20 Jan 2015, 10:31

Re: Creating Installer with 7zip SFX exe - without using Tem

25 Feb 2015, 11:12

I tested it and it's working. I edit my first post.

One question to that:

How can i send parameters like -o"Path to extract" -y to the exe.

I know its's the second param of BinRun, but i am getting an Error:

"The following variable name contain an illegal character:"
Dev for a better world :) > PHP for Web > AHK H for Local > with KISS (Keep it Short and Simple) on Win 10 Pro (Version 1709) x64
tmplinshi
Posts: 1147
Joined: 01 Oct 2013, 14:57

Re: Creating Installer with 7zip SFX exe - without using Tem

13 May 2015, 03:30

Taurus wrote:I tested it and it's working. I edit my first post.

One question to that:

How can i send parameters like -o"Path to extract" -y to the exe.

I know its's the second param of BinRun, but i am getting an Error:

"The following variable name contain an illegal character:"

Code: [Select all] [Download] GeSHi © Codebox Plus

cmdLine := "-o " . """d:\Path to extract"" -y"
MsgBox, % cmdLine
BinRun("YourExeFile.exe", cmdLine )

Return to “Tutorials”

Who is online

Users browsing this forum: angelinamichelle and 6 guests