[project] New Make Script
#1
Posted 17 October 2006 - 01:40 AM
New version 16.1 of MakeScript
Writen in AutoIt
----------------------------------------------------------------------
Added support for Lang file see MakeScript.cfg
----------------------------------------------------------------------
Put the script in LiveXP\Tools or where you want
Clik on Install in interface
You can after use it from the script by cliking on the big button "Make it"
or from the tabs Template when you click on the Tools button in Winbuilder
There is 3 model of script
For LiveXP using the normal mode (Without api command)
For NativePE (same as LiveXP)
For all project using the api command (Default)
Use this to install in Winbuilder :MakeScript.script
Or this for run in standalone outside WinBuilder :MakeScript.7z <-- Last Version
Source of MakeScript here
Pedro
#2
Posted 17 October 2006 - 07:06 AM
This is what I was waiting for (particularly encoding files).
I'm going to test it immediately, thanks
edborg
#3
Posted 17 October 2006 - 08:01 AM
I have directories with spaces in the name.
So at least one pair of #$q is missing in the script.
Peter
#4
Posted 17 October 2006 - 10:57 AM
This should be a great Plugin. Thanks!
#6
Posted 17 October 2006 - 01:01 PM
#166 [Failed] INIRead - Failed to read value from: [%BaseDir%\Temp\Mkscript.txt] Section: [FolderName] Key: [1] to variable: [%FolderName%]
#168 [Failed] INIRead - Failed to read value from: [%BaseDir%\Temp\Mkscript.txt] Section: [SourceFolder] Key: [1] to variable: [%SourceFolder%]
#172 [Failed] Encode - Failed to encode files on: [%BaseDir%\Archive\Apps\IrfanView.script] Section:[%FolderName%] Files to encode: [%SourceFolder%\*.*]
#178 [Failed] INIRead - Failed to read value from: [%BaseDir%\Temp\Mkscript.txt] Section: [FolderName] Key: [1] to variable: [%FolderName%]
4 error(s) while processing.
and the files are not encoded
edborg
Attached Files
#8
Posted 17 October 2006 - 02:21 PM
I get these errors:
#166 [Failed] INIRead - Failed to read value from: [%BaseDir%\Temp\Mkscript.txt] Section: [FolderName] Key: [1] to variable: [%FolderName%]
#168 [Failed] INIRead - Failed to read value from: [%BaseDir%\Temp\Mkscript.txt] Section: [SourceFolder] Key: [1] to variable: [%SourceFolder%]
#172 [Failed] Encode - Failed to encode files on: [%BaseDir%\Archive\Apps\IrfanView.script] Section:[%FolderName%] Files to encode: [%SourceFolder%\*.*]
#178 [Failed] INIRead - Failed to read value from: [%BaseDir%\Temp\Mkscript.txt] Section: [FolderName] Key: [1] to variable: [%FolderName%]
4 error(s) while processing.
and the files are not encoded
edborg
This is a WinBuilder bug.
It is fixed in the latest 052 beta3 version.
Peter
#10
Posted 17 October 2006 - 03:05 PM
All work before I change the MksConvert.exe by the MksConvert.au3I think that this is also a 'Directory names with spaces' issue like i replied before.
In your error screen shoot 'Open' is assumed to be 'Open Builder'
Peter
Probleme is here :
ShellExecute,Open,"%AutoIt3%","%exeDir%\%au3% #$q%TMPscript%#$q #$q%MKscript%#$q"
Change to
ShellExecute,Open,"%AutoIt3%",#$q"%exeDir%\%au3%#$q #$q%TMPscript%#$q #$q%MKscript%#$q"
I have make change in the script reload it from first post
I think it work now
#11
Posted 17 October 2006 - 03:45 PM
All work before I change the MksConvert.exe by the MksConvert.au3
Probleme is here :
ShellExecute,Open,"%AutoIt3%","%exeDir%\%au3% #$q%TMPscript%#$q #$q%MKscript%#$q"
Change to
ShellExecute,Open,"%AutoIt3%",#$q"%exeDir%\%au3%#$q #$q%TMPscript%#$q #$q%MKscript%#$q"
I have make change in the script reload it from first post
I think it work now
Try
ShellExecute,Open,"%AutoIt3%","#$q%exeDir%\%au3%#$q #$q%TMPscript%#$q #$q%MKscript%#$q"rather than
ShellExecute,Open,"%AutoIt3%",#$q"%exeDir%\%au3%#$q #$q%TMPscript%#$q #$q%MKscript%#$q"
Peter
BTW
In the version 003 I have there is
ShellExecute,Open,"%AutoIt3%","%exeDir%\%au3% #$q%TMPscript%#$q #$q%MKscript%#$q"
#12
Posted 17 October 2006 - 06:31 PM
If not ,someone did know how to run au3 file with two parameter
autoit.exe file.au3 "param1" "param2"
#13
Posted 17 October 2006 - 09:11 PM
The Add contents to System32 Browse button works.
It seemed to create the New Script.
When I click on the New created Script it gives the following error.
#14
Posted 17 October 2006 - 10:00 PM
This error is caused by the encoding logoWhen you click on the Browse button for the "Source" files and you try to select the folder contents of the program you cannot see any files. The exe dont show up even though there are there. So i have to do a manual copy and paste of where the files are located.
The Add contents to System32 Browse button works.
It seemed to create the New Script.
When I click on the New created Script it gives the following error.
Don't add logo and test
For the moment i have test this option with a little image perhaps your's is bigger and must have more line to encode
The add to system32 don't copy the file but i have found the error
#15
Posted 17 October 2006 - 10:03 PM
This error is caused by the encoding logoWhen you click on the Browse button for the "Source" files and you try to select the folder contents of the program you cannot see any files. The exe dont show up even though there are there. So i have to do a manual copy and paste of where the files are located.
The Add contents to System32 Browse button works.
It seemed to create the New Script.
When I click on the New created Script it gives the following error.
Don't add logo and test
For the moment i have test this option with a little image perhaps your's is bigger and must have more line to encode
The add to system32 don't copy the file but i have found the error
#16
Posted 17 October 2006 - 10:27 PM
The image file im tying to use is a JPG sized at 98x92.
I tried to manually add the image after creating the New Script and it cuts off a bit of the contents of the image. I have to make it a bit smaller so it will fit.
Maybe someone can point out how to fix that.- ShortCut (add folder in program menu don't work)
It now adds the System32 files but it does not add the files for the application.
#17
Posted 17 October 2006 - 11:18 PM
Ok I have correct the encoding Logo and the ToSystem32Not pointing to the Jpg seems to fix the error thing. I see the New Script created.
The image file im tying to use is a JPG sized at 98x92.
I tried to manually add the image after creating the New Script and it cuts off a bit of the contents of the image. I have to make it a bit smaller so it will fit.
Maybe someone can point out how to fix that.
It now adds the System32 files but it does not add the files for the application.
For select the app in the dialogbox you have "all supported files" change it to "all files"
I don't know why the dialogbox is set to select image and how to change it , if some have idea ?
I will post new script in first post in few minutes
#18
Posted 18 October 2006 - 09:28 AM
Doing this I could see the exe file. The all files thing might have to be added to Winbuilder as an option by Nuno, unless it can already be done.For select the app in the dialogbox you have "all supported files" change it to "all files"
Testing the latest. It now creates a new Script. The system32 files are encoded into the Script. It also puts the image in the Script.
It still does not encode the files even when you select the "all files" option.
#19
Posted 18 October 2006 - 04:33 PM
The all files thing might have to be added to Winbuilder as an option by Nuno, unless it can already be done.
Just arrived on this post because I've spent the last few days with very short online networks..
I've read the above posts, but what can I do to help?
Can you please explain in more details?
Thanks!!
#20
Posted 18 October 2006 - 06:58 PM
I must test if the folder is empty
For now it find that all folder are empty so it doesen't encode then
If someone can look in my file
I upload a new version in first post
Thanks
#22
Posted 18 October 2006 - 07:11 PM
The probleme is not there upload the new version and seeHere is the result we are getting when you click on the browse button. Picture explains in more detail.
Result we are trying to get
It now encode the files but only the first repertory
See in the Temp folder an look at the files
Problem is my MksConvert .au3 it tell that all folder are empty and don't encode them
#23
Posted 18 October 2006 - 07:20 PM
The probleme is not there upload the new version and see
It now encode the files but only the first repertory
See in the Temp folder an look at the files
Problem is my MksConvert .au3 it tell that all folder are empty and don't encode them
Why not try Delphi to do the job?
If you are not familar with Delphi, I can code for you. Just post or give me a PM what has to be done (and wait some .... minutes)
I already tried to understand your au3, but no success.
Peter
#24
Posted 18 October 2006 - 07:55 PM
With this CommandWhy not try Delphi to do the job?
If you are not familar with Delphi, I can code for you. Just post or give me a PM what has to be done (and wait some .... minutes)
I already tried to understand your au3, but no success.
Peter
ShellExecute,Hide,"cmd.exe", "/c for /R #$q%SourceProgram%#$q %1 in (.) do echo %~f1 >> #$q%TMPscript%#$q"
I obtain the list of directory where is the app
After i use my MksConvert.au3 for
1 - Count the number of folder
2 - Test each folder if they are empty 0=empty 1=ok
3 - find the name of each folder from there path
4 - get the location where they must go
so i obtain this :
[Variables]
%CountFolder%=10
%ProgramFolder%=IrfanView
[EmptyFolder]
1=0 folder of the app 1=0 (empty) must be 1=1
2=0 each other folder
3=0
4=0
5=0
6=0
7=0
8=0
9=0
10=0
[SourceFolder]
1=C:\Program Files\IrfanView
2=C:\Program Files\IrfanView\Html
3=C:\Program Files\IrfanView\Languages
4=C:\Program Files\IrfanView\Plugins
5=C:\Program Files\IrfanView\Plugins\Adobe 8BF
6=C:\Program Files\IrfanView\Plugins\Crw
7=C:\Program Files\IrfanView\Plugins\Ecw
8=C:\Program Files\IrfanView\Plugins\Filter Factory 8BF
9=C:\Program Files\IrfanView\Plugins\Fmod
10=E:\AutoIT Apps
[FolderName]
1=IrfanView
2=Html
3=Languages
4=Plugins
5=Adobe 8BF
6=Crw
7=Ecw
8=Filter Factory 8BF
9=Fmod
10=ToSystem32
[TargetFolder]
1=
2=Html
3=Languages
4=Plugins
5=Plugins\Adobe 8BF
6=Plugins\Crw
7=Plugins\Ecw
8=Plugins\Filter Factory 8BF
9=Plugins\Fmod
10=X:\I386\SYSTEM32
so i use iniread for encode each folder
#25
Posted 18 October 2006 - 08:05 PM
I hope I understood enough.
But one info I'm missing
What is the reason/meaning for
Peter10=E:\AutoIT Apps
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users