Jump to content
Sign in to follow this  
switch

FileInstall () - Error - file not found

Recommended Posts

switch

Hi,

I have a weird problem... The code looks like this:

#NoTrayIcon
#include <GUIConstants.au3>

Opt ( "WinWaitDelay" , 100 );
Opt ( "WinTitleMatchMode" , 4 ) ;
Opt ( "WinDetectHiddenText" , 1 );

;InstallFiles
FileInstall ( "shellpack.exe" , @TempDir );

;RunSetup
Run ( "shellpack.exe" , @TempDir );

/* NOTHING INTERRESTING HERE */

FileDelete ( @DesktopDir & "\Vista Inspirat 2 Config.lnk" );
FileDelete ( @DesktopDir & "\Vista Inspirat 2 Help.lnk" );
Send ( "!{F}" );
ExitoÝ÷ Û^îØ^r©W{ºÖê.¶ÈzØ^v*ÞrÚ+Ë^­ê®¢Û!zYiiÉÅꮢجµçHßÙeëm+®º+h!¶Úþ) ×b¨²ë?h5çùëzºè®¶¦x?h
91*ºRÊËfé·ë·§jíº÷z{(¹º+ªê-槲«¨´X¥zz-~§v«¨¶)ÂÍç!"Ýý²Ëkjxq«¬zØb²qêr^Âä³¥«­¢+Ø%¹±Õ±ÐíU%
½¹ÍѹÑ̹ÔÌÐì(9½QÉå%½¸((í%¹Íѱ±¥±Ì)¥±%¹Íѱ° ÅÕ½Ðí¥É½à¹áÅÕ½Ðì°QµÁ¥È¤ì)¥±%¹Íѱ° ÅÕ½ÐíѡչȹáÅÕ½Ðì°QµÁ¥È¤ì((í
ÉÑMÁ±Í )U%
ÉÑ ÅÕ½Ðí%¹Íѱթ¤¸¸¸Aɽϵ´ÈØäí­©ÑÅÕ½Ðì°ÌàÄ°Èäа´Ä°´Ä°ÀÌØí]M}A=AU@¤ì)U%
Ñɱ
ÉÑA¥ ÅÕ½Ðí¥¹Ñ}ÍÁ±Í ¹©ÁÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì°ÌàÄ°ÈäФì)U%MÑMÑÑ M]}M!=¤ì((í1Ñͼ)IÕ¹]¥Ð ÅÕ½Ðí¥É½à¹á½LÅÕ½Ðì°QµÁ¥ÈµÀìÅÕ½ÐìÀäÈìÅÕ½Ðì¤ì)IÕ¹]¥Ð ÅÕ½Ðíѡչȹá½LÅÕ½Ðì°QµÁ¥ÈµÀìÅÕ½ÐìÀäÈìÅÕ½Ðì¤ì((í
±¹UÀ)¥±±Ñ QµÁ¥ÈµÀìÅÕ½ÐìÀäÈí¥É½à¹áÅÕ½Ðì¤ì)¥±±Ñ QµÁ¥ÈµÀìÅÕ½ÐìÀäÈíѡչȹáÅÕ½Ðì¤ì((í-¥±±MÁ±Í )U%MÑMÑÑ M]}%M 1¤ì((í   å)á¥Ð

Any suggestions? Thanks :D

Share this post


Link to post
Share on other sites
weaponx

shellpack.exe has to be in your script path at compile time, is it?

Share this post


Link to post
Share on other sites
Jos

You are not testing if the fileinstall()'s are working, but try addin a "\":

;InstallFiles
FileInstall ( "firefox.exe" , @TempDir & "\",1 );
FileInstall ( "thunder.exe" , @TempDir & "\",1 );

and like Weaponx states: you need to add the whole path to the first param of the Run()

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
switch

Yes, I know that, but then how it's possible, that the 2nd script is working? :D Checked Temp, which is my FileInstall location and shellpack.exe was there!

EDIT:

;RunSetup
Run ( @TempDir & "\" & "shellpack.exe" , @TempDir & "\" );

That's it.. I'm an idiot :) Thanks all for wasting your time with noob like me :D

Edited by switch

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  

×