Jump to content
YOUR-AD-HERE
HOSTING
TOOLS
992Proxy
  • 0

Locked how can i create winrar sfx archive with vb6


MasterVb6

Question

1 answer to this question

Recommended Posts

  • 0

Re: how can i create winrar sfx archive with vb6

 

Maybe something like this:

 

[LENGUAJE=vb]

On Error GoTo ErrorHandler

Dim RarEXE As String

Dim RarPath As String

Dim args As String

RarEXE = "\WinRAR\Rar.exe"

If FileExist(Environ$("PROGRAMFILES(X86)") & RarEXE) Then

RarPath = getSpecialPath(CSIDL_PROGRAM_FILESX86) & RarEXE

ElseIf FileExist(Environ$("PROGRAMFILES") & RarEXE) Then

RarPath = getSpecialPath(CSIDL_PROGRAM_FILES) & RarEXE

Else

RarPath = ""

End If

If RarPath <> "" Then

Dim configFile As String

Dim destFile As String

configFile = "C:\xfs.conf" 'Config filename (see above)

destFile = "C:\install_me.exe" 'Destination filename

args = "a -r -sfx -z" & Chr$(34) & configFile & Chr$(34) & " auto_install " & Chr$(34) & destFile & Chr$(34)

Shell Chr$(34) & RarPath & Chr$(34) & " " & args, 0

End If[/LENGUAJE]

 

The config file should have something like this:

 

This is the hidden content, please

 

I haven't test the code, but it's kinda like this for sure.

 

Regards.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.