Steve1040 Posted October 26, 2007 Share Posted October 26, 2007 (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 October 26, 2007 by Steve1040 Link to comment Share on other sites More sharing options...
DW1 Posted October 26, 2007 Share Posted October 26, 2007 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 AutoIt3 Online Help Link to comment Share on other sites More sharing options...
Steve1040 Posted October 26, 2007 Author Share Posted October 26, 2007 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? Link to comment Share on other sites More sharing options...
Blue_Drache Posted October 26, 2007 Share Posted October 26, 2007 (edited) Yes the path is correct.I created it for this test.Just to make sure my understanding of FileInstall is correctFileInstall("Inputfile", "Outputfile")Input is the file I want added to the compiled scriptOutput 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 October 26, 2007 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
rover Posted October 26, 2007 Share Posted October 26, 2007 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... Link to comment Share on other sites More sharing options...
Steve1040 Posted October 26, 2007 Author Share Posted October 26, 2007 that error message is from Aut2Exe if the file isn't present when compiling script to exeAut2Exe 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:9999sure 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 upIt works now - Sorry to waste everyones time. Link to comment Share on other sites More sharing options...
weaponx Posted October 26, 2007 Share Posted October 26, 2007 What would you guys think of me if I told you sometimes I get 'i' and '1' mixed upIt works now - Sorry to waste everyones time.It's okay. Just pack up your desk at the end of the day. Link to comment Share on other sites More sharing options...
Steve1040 Posted October 26, 2007 Author Share Posted October 26, 2007 Perhaps a little cash would show how sorry I am. How does $I000.00 sound Where should I send this check Link to comment Share on other sites More sharing options...
weaponx Posted October 26, 2007 Share Posted October 26, 2007 Perhaps a little cash would show how sorry I am.How does $I000.00 soundWhere should I send this checkHAHA! Good iOh snap, double pun bonus Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now