Sign in to follow this  
Followers 0
Steve1040

Need to add large exe file to compiled script

9 posts in this topic

#1 ·  Posted (edited)

OK I have a ebook compiled with HTMLEXE (http://www.htmlexe.com).

The final executable is about 55 megs

I'm trying to protect file using Val's Xprotec. I recently got it working (email).

So when a client has already registered and the license is valid. I would like the 55 meg program to start.

So I tried a test with a small file.

This code cause a error "Error adding file"

Here is my code

CODE
$XLicense=XProTec($D_Mail, $D_Program, $U_Price, $U_Trial, $U_License, $D_License, $D_PayPal, $D_Link, $U_Return)

$b = True

If $b = True Then FileInstall("C:\data folder root\Auction\lockcode\Sci.exe", "C:\data folder root\Auction\lockcode\run\Sci.exe")

What am I doing wrong?

Edited by Steve1040

Share this post


Link to post
Share on other sites



First, are you 100% certain that is the correct file path? and second, does the directory you are installing to already exist?

You can do

If Not FileExists("C:\data folder root\Auction\lockcode\run\") Then DirCreate("C:\data folder root\Auction\lockcode\run\")
In order to ensure this directory exists

Share this post


Link to post
Share on other sites

Yes the path is correct.

I created it for this test.

Just to make sure my understanding of FileInstall is correct

FileInstall("Inputfile", "Outputfile")

Input is the file I want added to the compiled script

Output is the Filename of the (compiled script + the Input file)

Is this correct?

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Yes the path is correct.

I created it for this test.

Just to make sure my understanding of FileInstall is correct

FileInstall("Inputfile", "Outputfile")

Input is the file I want added to the compiled script

Output is the Filename of the (compiled script + the Input file)

Is this correct?

Inputfile must be written out completely. NO VARIABLES OR @MACROS.

IE: "C:\program files\this\long\ass\folder\with\the\file.exe"

Outputfile can be a variable or contain @macros.

$file = "C:\program files\the\output\folder\file.exe"

FileInstall("C:\program files\this\long\ass\folder\with\the\file.exe", $file, 1)

Edited by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

that error message is from Aut2Exe

if the file isn't present when compiling script to exe

Aut2Exe message box

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

Aut2Exe Error

"Error Adding file:"

"C:\data folder root\Auction\lockcode\Sci.exe"

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

SciTe console message

!>15:32:42 Aut2exe.exe ended errors because the target exe wasn't created.rc:9999

sure that file is in the folder lockcode?

"C:\data folder root\Auction\lockcode\Sci.exe"


I see fascists...

Share this post


Link to post
Share on other sites

that error message is from Aut2Exe

if the file isn't present when compiling script to exe

Aut2Exe message box

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

Aut2Exe Error

"Error Adding file:"

"C:\data folder root\Auction\lockcode\Sci.exe"

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

SciTe console message

!>15:32:42 Aut2exe.exe ended errors because the target exe wasn't created.rc:9999

sure that file is in the folder lockcode?

"C:\data folder root\Auction\lockcode\Sci.exe"

What would you guys think of me if I told you sometimes I get 'i' and '1' mixed up

It works now - Sorry to waste everyones time.

Share this post


Link to post
Share on other sites

What would you guys think of me if I told you sometimes I get 'i' and '1' mixed up

It works now - Sorry to waste everyones time.

It's okay. Just pack up your desk at the end of the day.

Share this post


Link to post
Share on other sites

Perhaps a little cash would show how sorry I am.

How does $I000.00 sound

Where should I send this check

Share this post


Link to post
Share on other sites

Perhaps a little cash would show how sorry I am.

How does $I000.00 sound

Where should I send this check

HAHA! Good i

Oh snap, double pun bonus

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