IPB

Welcome Guest ( Log In | Register )

Recommended
BootDisk.com

Active Users

 
Reply to this topicStart new topic
EF Checksum
DaveXP
post Oct 17 2008, 10:07 PM
Post #1


Member
**

Group: Members
Posts: 24
Thank(s): 2
Joined: 11-October 08
Member No.: 19,191


United States


Hi all, I wrote a small script and tested it on LiveXP.

More info about EF Checksum http://www.efsoftware.com/cm/e.htm

It is my first script and I am not even sure, whether I adhered to all the guidelines.

Cheers, Dave
CODE
[main]
Title=EF Checksum
Selected=True
Locked=true
level=5
Author=DaveXP
Credits=EF Software
Version=001
Date=2008-01
Download_Level=1
Description=Adds EF Checksum to the project
Mandatory=False

[Interface]
pTextBox1="Source folder:",1,0,200,48,209,21,"C:\Program Files\EF CheckSum Manager"
pTextLabel1="EF Checksum",1,1,26,23,174,21,12,Normal
pTextLabel2="StartMenu shortcut",1,1,58,49,122,18,8,Normal
pCheckBox1="Desktop shortcut",1,3,41,69,159,18,True
pCheckBox2="QuickLaunch shortcut",1,3,41,89,167,18,True
pBevel1=pBevel1,1,12,10,8,436,141
pBevel2=pBevel2,1,12,10,8,439,144
pBevel3=pBevel3,1,12,8,6,440,145
pBevel4=pBevel4,1,12,200,48,210,22
pWebLabel1=www.efsoftware.com,1,10,325,129,85,18,http://www.efsoftware.com

[process]
If,NotExistFile,"%pTextBox1%\EFCM.exe",message,"Missing#$sEF Checksum#$sfiles,#$sscript#$sexiting."
If,NotExistFile,"%pTextBox1%\EFCM.exe",exit,"Missing#$sEF TrueImage#$sfiles"
If,ExistDir,"%TargetDir%\Programs",Set,"%WorkDir%","Programs"
If,ExistDir,"%TargetDir%\Program Files",Set,"%WorkDir%","Program#$sFiles"
If,ExistFile,"%ProjectInfo%",IniRead,"%ProjectInfo%","TargetStrings","sProgram_Files","%WorkDir%"
Echo,"Adding EF Checksum to the PE build .."
If,NotExistDir,"%TargetDir%\%WorkDir%\EF_Checksum",DirMake,"%TargetDir%\%WorkDir%\EF_Checksum"
FileCopy,"%pTextBox1%\EFCM.exe","%TargetDir%\%WorkDir%\EF_Checksum"
FileCopy,"%pTextBox1%\EFCMRES.dll","%TargetDir%\%WorkDir%\EF_Checksum"
FileCopy,"%pTextBox1%\LICENSE.TXT","%TargetDir%\%WorkDir%\EF_Checksum"
//FileCopy,"%pTextBox1%\EFCM.ini","%TargetDir%\%WorkDir%\EF_Checksum"
FileCopy,"%pTextBox1%\EFCM","%TargetDir%\%WorkDir%\EF_Checksum"
Echo,"Adding EF Checksum registry data .."
If,ExistFile,%BuildModelScript%,Run,%ScriptFile%,BMSC
Echo,"Writing True Image entries to txtsetup.sif.."
If,ExistFile,"%ScriptLog%",If,ExistFile,"%ProjectInfo%",Run,%ScriptLog%,Process-log
Echo,"All done adding EF Checksum."


[BMSC]
Run,%BuildModelScript%,Add-Shortcut,"SM\EF Checksum","#$pSystemDrive#$p\%WorkDir%\EF_Checksum\EFCM.exe","EF Checksum",-SF:#$pSystemDrive#$p\%WorkDir%\EF_Checksum\EFCM.exe#$q#$s-SS:SW_SHOWDEFAULT
If,%pCheckBox1%,Equal,True,Run,%BuildModelScript%,Add-Shortcut,"DE","#$pSystemDrive#$p\%WorkDir%\EF_Checksum\EFCM.exe","EF Checksum",-SF:#$pSystemDrive#$p\%WorkDir%\EF_Checksum\EFCM.exe#$q#$s-SS:SW_SHOWDEFAULT
If,%pCheckBox2%,Equal,True,Run,%BuildModelScript%,Add-Shortcut,"QL","#$pSystemDrive#$p\%WorkDir%\EF_Checksum\EFCM.exe","EF Checksum",-SF:#$pSystemDrive#$p\%WorkDir%\EF_Checksum\EFCM.exe#$q#$s-SS:SW_SHOWDEFAULT
Go to the top of the page
 
+Quote Post
The Following 1 Users Say Thank You to DaveXP For This Useful Post:
Nuno Brito
Nuno Brito
post Oct 17 2008, 11:18 PM
Post #2


Advanced Member
***

Group: .script developer
Posts: 6,179
Thank(s): 131
Joined: 13-July 06
From: Azores
Member No.: 1


Portugal


Hi Dave.

Thanks for the script, it's quite looking good for a first try.

Some suggestions to make the script simpler following the most up to date usual codings.

Mandatory=false is redundant unless you want it to be true
Locked=true is not used any more

At the moment, this project will only work for LiveXP and NativeEx based projects but you can follow the API scripting guidelines to make your script work on other projects like VistaPE (for example)

Other developers also use this API to ease the task of creating shortcuts and solve issues with statics paths like "Program files" (on my windows source this would be "Programas" for example)

Look here for quick guides:
http://www.boot-land.net/forums/index.php?showtopic=4415
http://www.boot-land.net/forums/?showtopic=4424
http://www.boot-land.net/forums/?showtopic=5518

There is also more info on the help pages (maybe you already read them but I link them just in case)
http://www.winbuilder.net/help

-------

For a first script, well done and thank you for sharing your work with us! (IMG:../forums/style_emoticons/default/thumbup.gif)
Go to the top of the page
 
+Quote Post
DaveXP
post Oct 18 2008, 12:00 AM
Post #3


Member
**

Group: Members
Posts: 24
Thank(s): 2
Joined: 11-October 08
Member No.: 19,191


United States


Nuno,

thanks for your feedback. I will look into this. Currently I am working on a script to integrate the "EASEUS Partition Manager 2.0 Home Edition" (see also the other forum), it seems to be a little tricky - at least to me.

Cheers,
Dave

PS
By the way, thanks to you and all the other guys for creating such a great tool and add-ons (IMG:../forums/style_emoticons/default/thumbsup.gif)

Go to the top of the page
 
+Quote Post
« Next Oldest · App Scripts · Next Newest »
 

Fast ReplyReply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 

Display Mode: Standard · Switch to: Linear+ · Switch to: Outline

Track this topic · Email this topic · Print this topic · Subscribe to this forum

RSS Lo-Fi Version Time is now: 20th October 2008 - 04:59 AM

W3C XHTML • © 2008 Boot Land • All rights reserved • W3C CSS