Hello dear guest!

Why not join our boot disk community? So do it. Life's short!

  - You get free access to our newsletter with all the interesting buzz about boot disks
  - We share publicity revenue with everyone who wishes to participate at the forums
  - Publicity is never, never, never displayed to members (along with many other cool things)
http://boot-land.net/register

184 Pages V  « < 63 64 65 66 67 > »   
Reply to this topic
 LiveXP -- Anything & Everything, Look only Post #1 and Last Posts of this topic
Rating 3 V
post Oct 23 2008, 04:15 PM
Post #641
psc
Guru   ******
Group: .script developer

  Joined: 14-July 06 From: Korschenbroich

Posts: 8,443
Thank(s): 441


Germany


QUOTE (cjc343 @ Oct 23 2008, 05:38 PM) *
I HAVE THIS ISSUE (TEMPORARILY) SOLVED TO MY SATISFACTION

This post is just to make others aware in case it is NOT a problem with my script. (And to learn the new syntax if it has changed)




//===> Add_Shortcut,[Type],[Folder],[FullFileName],[Title],[Work Folder],[Parameters],[IconFile( .ico .exe)],[StartMode(1, 2, 3, or 4)]

The AddShortcut code appears to have been updated fairly recently in the API. I had created a script for Ghost11 that provides options for several switches through shortcuts, when this script is run, an error is returned. I replaced the new shortcut code with a copy of the old code that I had and everything appears to have worked fine.

My code:

If,%pCheckBox6%,Equal,True,Add_Shortcut,Desktop,,,"Ghost11 Force-Clone_Bad-Blocks",,-FRO
If,%pCheckBox7%,Equal,True,Add_Shortcut,Desktop,,,"Ghost11 IWILLNOTMESSUPMODE",,-SURE
If,%pCheckBox8%,Equal,True,Add_Shortcut,Desktop,,,"Ghost11 Extreme-Compression",,-Z9
If,%pCheckBox9%,Equal,True,Add_Shortcut,Desktop,,,"Ghost11 Sector-by-Sector",,-IA
If,%pCheckBox10%,Equal,True,Add_Shortcut,Desktop,,,"Ghost11 Sector-by-Sector (LINUX)",,-IAL
If,%pCheckBox11%,Equal,True,Add_Shortcut,Desktop,,,"Ghost11 HELP",,-H
If,%pCheckBox12%,Equal,True,Add_Shortcut,Desktop,,,%pTextBox3%,,%pTextBox2%

As soon as the script hits the first one using options beyond "Folder" (A previous line, If,%pCheckBox4%,Equal,True,Add_Shortcut,StartMenu,Ghost11 works fine) the script fails with a file copy error along the lines of:
FileCopy - Failed to copy [%BaseDir%\Temp\livexp\shcTemp.ini] to: [%BaseDir%\Temp\livexp\Shortcuts\Files\Ghost\TITLE-OF-SHORTCUT_DATE-TIME-STAMP.shc]

Is this a problem with my code or with the API? Using the older shortcut code works fine, just bringing this to people's attention in case it is an issue with the API, or a case of the syntax needing to be updated...

Would be nice if you post a log of 'Old' and 'New' builds.

This could help Pedro a lot to detect an API issue, if there is any.
And it helps me to compare the two 'FileCopy' situations.

Peter


--------------------
Build the house starting with the basement rather than with the roof! But always have in mind how the roof should be made!

There are very rarely problems, in most cases there are issues.

There are never stupid questions, there can be only stupid answers.

+Quote Post
post Oct 23 2008, 06:16 PM
Post #642
cjc343
Newbie   *
Group: Members

  Joined: 30-July 08
Posts: 25
Thank(s): 2


United States


Relevant Logs:

Using OLD AddShortcut code:
CODE
[Success] IF - [True] is equal to: [True] evaluated string: [If,%pCheckBox6%,Equal,True,Add_Shortcut,Desktop,,,"Ghost11 Force-Clone_Bad-Blocks",,-FRO]
Processing section: [AddShortcut] From file: [%BaseDir%\Projects\LiveXP\Basic\Build\api.script]
[Parameter] with parameters: [Desktop],[],[],[Ghost11#$sForce-Clone_Bad-Blocks],[],[-FRO]
[Info] Create ShortCut Desktop
[Success] StrFormat - converted: [] to variable: [%OptionShortcut%] with result: []
[Ignore] IF - [] is equal to: [] evaluated string: [If,#3,NotEqual,,If,#5,Equal,,StrFormat,path,#3,%My_Shortcut_FOLDER%]
[Ignore] IF - [] is equal to: [] evaluated string: [If,#3,NotEqual,,If,#5,NotEqual,,StrFormat,path,#5\,%My_Shortcut_FOLDER%]
[Ignore] IF - [Ghost11 Force-Clone_Bad-Blocks] is not equal to: [] evaluated string: [If,#4,Equal,,StrFormat,filename,%ProgramTitle%,#4]
[Success] IF - [.-FRO.] is not equal to: [..] evaluated string: [If,".#6#7#8.",NotEqual,"..",run,%API%,ShortcutOptions,#1,#2,#3,#4,#5,#6,#7,#8]
Processing section: [ShortcutOptions] From file: [%BaseDir%\Projects\LiveXP\Basic\Build\api.script]
[Parameter] with parameters: [Desktop],[],[],[Ghost11#$sForce-Clone_Bad-Blocks],[],[-FRO]
[Info] Add options
[Success] StrFormat - converted: [] to variable: [%shortcut_Parameters%] with result: []
[Success] StrFormat - converted: [] to variable: [%shortcut_IconFile%] with result: []
[Success] StrFormat - converted: [] to variable: [%shortcut_Show%] with result: []
[Success] IF - [-FRO] is not equal to: [] evaluated string: [If,#6,NotEqual,,Set,"%shortcut_Parameters%","#$q#$s#$q-SP:#6"]
[Success] SetVar - Sucessfuly changed the value of [%shortcut_Parameters%] to: [#$q#$s#$q-SP:-FRO]
[Ignore] IF - [] is equal to: [] evaluated string: [If,#7,NotEqual,,If,#3,Equal,,Set,"%shortcut_IconFile%","#$q#$s#$q-SF:%PE_Programs%\%programFolder%\#7#$q#$s#$q-SI:0"]
[Ignore] IF - [] is equal to: [] evaluated string: [If,#7,NotEqual,,If,#3,NotEqual,,Set,"%shortcut_IconFile%","#$q#$s#$q-SF:%My_Shortcut_FOLDER%#7#$q#$s#$q-SI:0"]
[Ignore] IF - [] is not equal to: [1] evaluated string: [If,#8,Equal,1,Set,"%shortcut_Show%","#$q#$s#$q-SS:SW_SHOW"]
[Ignore] IF - [] is not equal to: [2] evaluated string: [If,#8,Equal,2,Set,"%shortcut_Show%","#$q#$s#$q-SS:SW_SHOWMINIMIZED"]
[Ignore] IF - [] is not equal to: [3] evaluated string: [If,#8,Equal,3,Set,"%shortcut_Show%","#$q#$s#$q-SS:SW_SHOWMAXIMIZED"]
[Ignore] IF - [] is not equal to: [4] evaluated string: [If,#8,Equal,4,Set,"%shortcut_Show%","#$q#$s#$q-SS:SW_HIDE"]
[Warning] System - Unrecognized setting [RefreshVars]
[Success] SetVar - Sucessfuly changed the value of [%OptionShortcut%] to: [#$q#$s#$q-SP:-FRO]
[Info] OptionShortcut=" "-SP:-FRO
Processed section [ShortcutOptions] in file: [%BaseDir%\Projects\LiveXP\Basic\Build\api.script]
Processing section: [AddShortcut_Desktop] From file: [%BaseDir%\Projects\LiveXP\Basic\Build\api.script]
[Parameter] with parameters: [Desktop],[],[],[Ghost11#$sForce-Clone_Bad-Blocks],[],[-FRO]
[Success] IF - [] is equal to: [] evaluated string: [If,#3,Equal,,Run,%BuildModelScript%,Add-Shortcut,"DE","%PE_Programs%\%programFolder%\%programExe%","#4","-SW:%PE_Programs%\%programFolder%%OptionShortcut%"]
Processing section: [Add-Shortcut] From file: [%BaseDir%\Projects\LiveXP\Basic\Build\4 - buildModel.Script]
[Parameter] with parameters: [DE],[%SystemDrive%\Program#$sFiles\Ghost\ghost32.exe],[Ghost11#$sForce-Clone_Bad-Blocks],[-SW:%SystemDrive%\Program#$sFiles\Ghost#$q#$s#$q-SP:-FRO]
[Success] AddVariables - Added section [Variables] from file [%BaseDir%\Projects\LiveXP\Basic\Shells\Explorer.Script] into the local variable list
[Success] IF - File does not exist: [%ProjectTemp%\shortcutParse.exe] evaluated string: [If,NotExistFile,"%parse%",ExtractFile,"%BuildModelScript%","Folder","shortcutParse.exe",%ProjectTemp%]
[Success] ExtractFile - [shortcutParse.exe] to: [%BaseDir%\Temp\livexp]
[Ignore] IF - Directory exists: [%BaseDir%\Temp\livexp\Shortcuts] evaluated string: [If,NotExistDir,%ProjectTemp%\Shortcuts,DirMake,%ProjectTemp%\Shortcuts]
[Success] AddVariables - Added section [Variables] from file [%BaseDir%\Projects\LiveXP\Basic\Build\4 - buildModel.Script] into the local variable list
[Ignore] IF - File does not exist: [%BaseDir%\Temp\livexp\buildModel_err.log] evaluated string: [If,ExistFile,"%ProjectTemp%\buildModel_err.log",FileDelete,"%ProjectTemp%\buildModel_err.log"]
[Ignore] IF - [DE] is not equal to: [1] evaluated string: [If,#1,Equal,1,ShellExecute,Hide,"%parse%","#$q/C:%ProjectInfo%#$q #$q/O:%shcTemp%#$q #$q/A:#1#$c#2#$q"]
[Success] IF - [DE] is not equal to: [1] evaluated string: [If,#1,NotEqual,1,ShellExecute,Hide,"%parse%","#$q/C:%ProjectInfo%#$q #$q/O:%shcTemp%#$q #$q/ST:#1#$q #$q/SE:#2#$q #$q/SL:#3#$q #$q#4#$q"]
[Success] ShellExecute: [Hide] using: [%BaseDir%\Temp\livexp\shortcutParse.exe] with parameters: ["/C:%BaseDir%\Workbench\livexp\UserData\ProjectInfo.ini" "/O:%BaseDir%\Temp\livexp\shcTemp.ini" "/ST:DE" "/SE:%SystemDrive%\Program Files\Ghost\ghost32.exe" "/SL:Ghost11 Force-Clone_Bad-Blocks" "-SW:%SystemDrive%\Program Files\Ghost" "-SP:-FRO"]
[Success] IniRead - [%BaseDir%\Temp\livexp\shcTemp.ini] Section [Created] Key [Date] to variable: [%tim%] with value [2008-Oct-23 094140808]
[Success] IniRead - [%BaseDir%\Temp\livexp\shcTemp.ini] Section [Shortcut] Key [shortCutName] to variable: [%nam%] with value [Ghost11#$sForce-Clone_Bad-Blocks]
[Success] FileCopy - Copied [%BaseDir%\Temp\livexp\shcTemp.ini] to: [%BaseDir%\Temp\livexp\Shortcuts\Ghost11 Force-Clone_Bad-Blocks_2008-Oct-23 094140808.shc]
Processing section: [Add-Shortcut] From file: [%BaseDir%\Projects\LiveXP\Basic\Shells\Explorer.Script]
       [Parameter] with parameters: [C:\Copy#$sof#$sWinBuilder75b4\Temp\livexp\Shortcuts\Ghost11#$sForce-Clone_Bad-Blocks_2008-Oct-23#$s094140808.shc]
       [Success] AddVariables - Added section [Variables] from file [%BaseDir%\Projects\LiveXP\Basic\Build\4 - buildModel.Script] into the local variable list
       Processing section: [shc-model] From file: [%BaseDir%\Projects\LiveXP\Basic\Shells\Explorer.Script]
             [Parameter] with parameters: [C:\Copy#$sof#$sWinBuilder75b4\Temp\livexp\Shortcuts\Ghost11#$sForce-Clone_Bad-Blocks_2008-Oct-23#$s094140808.shc]
             [Ignore] IF - File exists: [%BaseDir%\Target\LiveXP\$ModelRAM\filled] evaluated string: [If,NotExistFile,"%TargetDir%\$ModelRAM\filled",FileCreateBlank,"%TargetDir%\$ModelRAM\filled"]
             [Ignore] IF - File exists: [%BaseDir%\Temp\livexp\shortcutWinExp.exe] evaluated string: [If,NotExistFile,"%ProjectTemp%\shortcutWinExp.exe",ExtractFile,"%ActiveShell%","Shortcuts",shortcutWinExp.exe,%ProjectTemp%]
             [Success] ShellExecute: [Hide] using: [%BaseDir%\Temp\livexp\shortcutWinExp.exe] with parameters: ["/C:%BaseDir%\Workbench\livexp\UserData\ProjectInfo.ini" "/I:%BaseDir%\Temp\livexp\Shortcuts\Ghost11 Force-Clone_Bad-Blocks_2008-Oct-23 094140808.shc"]
       Processed section [shc-model] in file: [%BaseDir%\Projects\LiveXP\Basic\Shells\Explorer.Script]
Processed section [Add-Shortcut] in file: [%BaseDir%\Projects\LiveXP\Basic\Shells\Explorer.Script]
[Ignore] IF - File does not exist: [%BaseDir%\Temp\livexp\buildModel_err.log] evaluated string: [If,ExistFile,"%ProjectTemp%\buildModel_err.log",ShellExecute,Open,"%ProjectTemp%\buildModel_err.log",""]
Processed section [Add-Shortcut] in file: [%BaseDir%\Projects\LiveXP\Basic\Build\4 - buildModel.Script]
[Ignore] IF - [] is equal to: [] evaluated string: [If,#3,NotEqual,,Run,%BuildModelScript%,Add-Shortcut,"DE","#3","#4","-SW:%My_Shortcut_FOLDER%%OptionShortcut%"]
Processed section [AddShortcut_Desktop] in file: [%BaseDir%\Projects\LiveXP\Basic\Build\api.script]
Processed section [AddShortcut] in file: [%BaseDir%\Projects\LiveXP\Basic\Build\api.script]


Using NEW (freshly downloaded) API:

CODE
[Success] IF - [True] is equal to: [True] evaluated string: [If,%pCheckBox6%,Equal,True,Add_Shortcut,Desktop,,,"Ghost11 Force-Clone_Bad-Blocks",,-FRO]
Processing section: [AddShortcut] From file: [%BaseDir%\Projects\LiveXP\Basic\Build\api.script]
[Parameter] with parameters: [Desktop],[],[],[Ghost11#$sForce-Clone_Bad-Blocks],[],[-FRO]
[Info] Create ShortCut Desktop
[Success] StrFormat - converted: [] to variable: [%OptionShortcut%] with result: []
[Success] IF - [] is equal to: [] evaluated string: [If,#2,Equal,,StrFormat,filename,%Scriptdir%,#2]
[Success] StrFormat - converted: [%Scriptdir%] to variable: [#2] with result: [Imaging]
[Success] IF - [] is equal to: [] evaluated string: [If,#3,Equal,,Set,#3,"%PE_Programs%\%programFolder%\%programExe%"]
[Success] SetVar - Sucessfuly changed the value of [#3] to: [%SystemDrive%\Program Files\Ghost\ghost32.exe]
[Success] StrFormat - converted: [#3] to variable: [%CPath%] with result: [%SystemDrive%\Program Files\Ghost\]
[Success] StrFormat - converted: [#3] to variable: [%CFilename%] with result: [ghost32.exe]
[Ignore] IF - [%SystemDrive%\Program Files\Ghost\] is not equal to: [] evaluated string: [If,%CPath%,Equal,,Set,#3,%PE_Programs%\%programFolder%\%CFilename%]
[Success] IF - [] is equal to: [] evaluated string: [If,#5,Equal,,StrFormat,path,#3,%My_Shortcut_FOLDER%]
[Success] StrFormat - converted: [#3] to variable: [%My_Shortcut_FOLDER%] with result: [%SystemDrive%\Program Files\Ghost\]
[Ignore] IF - [] is equal to: [] evaluated string: [If,#5,NotEqual,,StrFormat,path,#5\,%My_Shortcut_FOLDER%]
[Ignore] IF - [Ghost11 Force-Clone_Bad-Blocks] is not equal to: [] evaluated string: [If,#4,Equal,,Set,#4,%ProgramTitle%]
[Success] IF - [.-FRO.] is not equal to: [..] evaluated string: [If,".#6#7#8.",NotEqual,"..",Run,%API%,ShortcutOptions,#1,#2,#3,#4,#5,#6,#7,#8]
Processing section: [ShortcutOptions] From file: [%BaseDir%\Projects\LiveXP\Basic\Build\api.script]
[Parameter] with parameters: [Desktop],[Imaging],[%SystemDrive%\Program#$sFiles\Ghost\ghost32.exe],[Ghost11#$sForce-Clone_Bad-Blocks],[],[-FRO]
[Info] Add options
[Ignore] IF - [] is equal to: [] evaluated string: [If,#7,NotEqual,,Run,%API%,_AddIcon_,#1,#2,#3,#4,#5,#6,#7,#8]
[Success] ELSE - executing command: [Set,%shortcut_IconFile%,]
[Success] SetVar - Sucessfuly changed the value of [%shortcut_IconFile%] to: []
[Success] IF - [-FRO] is not equal to: [] evaluated string: [If,#6,NotEqual,,Set,"%shortcut_Parameters%","#$q#$s#$q-SP:#6"]
[Success] SetVar - Sucessfuly changed the value of [%shortcut_Parameters%] to: [#$q#$s#$q-SP:-FRO]
[Ignore] ELSE - [Set,%shortcut_Parameters%,]
[Success] IF - [] is equal to: [] evaluated string: [If,#8,Equal,,Set,"%shortcut_Show%",""]
[Success] SetVar - Sucessfuly changed the value of [%shortcut_Show%] to: []
[Ignore] ELSE - [Begin]
[Ignore] [If,#8,Equal,1,Set,"%shortcut_Show%","#$q#$s#$q-SS:SW_SHOW"]
[Ignore] [If,#8,Equal,2,Set,"%shortcut_Show%","#$q#$s#$q-SS:SW_SHOWMINIMIZED"]
[Ignore] [If,#8,Equal,3,Set,"%shortcut_Show%","#$q#$s#$q-SS:SW_SHOWMAXIMIZED"]
[Ignore] [If,#8,Equal,4,Set,"%shortcut_Show%","#$q#$s#$q-SS:SW_HIDE"]
[Ignore] [End]
[Success] SetVar - Sucessfuly changed the value of [%OptionShortcut%] to: [#$q#$s#$q-SP:-FRO]
[Info] OptionShortcut=" "-SP:-FRO
Processed section [ShortcutOptions] in file: [%BaseDir%\Projects\LiveXP\Basic\Build\api.script]
[Success] IF - File exists: [%BaseDir%\Projects\LiveXP\Apps\Translate.ini] evaluated string: [If,ExistFile,"%ProjectDir%\Apps\Translate.ini",Begin]
[Success] IniRead - [%BaseDir%\Projects\LiveXP\Apps\Translate.ini] Section [Config] Key [Mode] to variable: [%Translate%] with value [3]
[Success] IF - [3] is bigger than [0] evaluated string: [If,%Translate%,Bigger,0,Run,%API%,_Translate_%Translate%,#1,#2,#3,#4,#5,#6,#7,#8]
Processing section: [_Translate_3] From file: [%BaseDir%\Projects\LiveXP\Basic\Build\api.script]
[Parameter] with parameters: [Desktop],[Imaging],[%SystemDrive%\Program],[Files\Ghost\ghost32.exe],[Ghost11#$sForce-Clone_Bad-Blocks],[],[-FRO]
[Ignore] IF - [Desktop] is not equal to: [StartMenu] evaluated string: [If,"#1",Equal,"StartMenu",Begin]
[Ignore] [IniRead,"%ProjectDir%\Apps\Translate.ini","Title_Folder","#4","%_Title_Folder%"]
[Ignore] [If,"%_Title_Folder%",NotEqual,"",Set,"#2","%_Title_Folder%"]
[Ignore] [Else,IniWrite,"%ProjectDir%\Apps\Translate.ini","Title_Folder","#4","#2"]
[Ignore] [IniRead,"%ProjectDir%\Apps\Translate.ini","FolderName","#2","%_Folder_Name%"]
[Ignore] [If,"%_Folder_Name%",NotEqual,"",Set,"#2","%_Folder_Name%"]
[Ignore] [Else,IniWrite,"%ProjectDir%\Apps\Translate.ini","FolderName","#2","#2"]
[Ignore] [End]
[Success] IniRead - [%BaseDir%\Projects\LiveXP\Apps\Translate.ini] Section [TitleName] Key [Files\Ghost\ghost32.exe] to variable: [%_Title_Name%] with value [Files\Ghost\ghost32.exe]
[Success] IF - [Files\Ghost\ghost32.exe] is not equal to: [] evaluated string: [If,"%_Title_Name%",NotEqual,"",Set,"#4","%_Title_Name%"]
[Success] SetVar - Sucessfuly changed the value of [#4] to: [Files\Ghost\ghost32.exe]
[Ignore] ELSE - [IniWrite,%ProjectDir%\Apps\Translate.ini,TitleName,#4,#4]
Processing section: [AddShortcut_Desktop] From file: [%BaseDir%\Projects\LiveXP\Basic\Build\api.script]
[Parameter] with parameters: [Desktop],[Imaging],[%SystemDrive%\Program],[Files\Ghost\ghost32.exe]
Processing section: [Add-Shortcut] From file: [%BaseDir%\Projects\LiveXP\Basic\Build\4 - buildModel.Script]
       [Parameter] with parameters: [DE],[%SystemDrive%\Program],[Files\Ghost\ghost32.exe],[-SW:%SystemDrive%\Program#$sFiles\Ghost\#$q#$s#$q-SP:-FRO]
       [Success] AddVariables - Added section [Variables] from file [%BaseDir%\Projects\LiveXP\Basic\Shells\Explorer.Script] into the local variable list
       [Success] IF - File does not exist: [%ProjectTemp%\shortcutParse.exe] evaluated string: [If,NotExistFile,"%parse%",ExtractFile,"%BuildModelScript%","Folder","shortcutParse.exe",%ProjectTemp%]
       [Success] ExtractFile - [shortcutParse.exe] to: [%BaseDir%\Temp\livexp]
       [Ignore] IF - Directory exists: [%BaseDir%\Temp\livexp\Shortcuts] evaluated string: [If,NotExistDir,%ProjectTemp%\Shortcuts,DirMake,%ProjectTemp%\Shortcuts]
       [Success] AddVariables - Added section [Variables] from file [%BaseDir%\Projects\LiveXP\Basic\Build\4 - buildModel.Script] into the local variable list
       [Ignore] IF - File does not exist: [%BaseDir%\Temp\livexp\buildModel_err.log] evaluated string: [If,ExistFile,"%ProjectTemp%\buildModel_err.log",FileDelete,"%ProjectTemp%\buildModel_err.log"]
       [Ignore] IF - [DE] is not equal to: [1] evaluated string: [If,#1,Equal,1,ShellExecute,Hide,"%parse%","#$q/C:%ProjectInfo%#$q #$q/O:%shcTemp%#$q #$q/A:#1#$c#2#$q"]
       [Success] IF - [DE] is not equal to: [1] evaluated string: [If,#1,NotEqual,1,ShellExecute,Hide,"%parse%","#$q/C:%ProjectInfo%#$q #$q/O:%shcTemp%#$q #$q/ST:#1#$q #$q/SE:#2#$q #$q/SL:#3#$q #$q#4#$q"]
       [Success] ShellExecute: [Hide] using: [%BaseDir%\Temp\livexp\shortcutParse.exe] with parameters: ["/C:%BaseDir%\Workbench\livexp\UserData\ProjectInfo.ini" "/O:%BaseDir%\Temp\livexp\shcTemp.ini" "/ST:DE" "/SE:%SystemDrive%\Program" "/SL:Files\Ghost\ghost32.exe" "-SW:%SystemDrive%\Program Files\Ghost\" "-SP:-FRO"]
       [Success] IniRead - [%BaseDir%\Temp\livexp\shcTemp.ini] Section [Created] Key [Date] to variable: [%tim%] with value [2008-Oct-23 110644275]
       [Success] IniRead - [%BaseDir%\Temp\livexp\shcTemp.ini] Section [Shortcut] Key [shortCutName] to variable: [%nam%] with value [Files\Ghost\ghost32.exe]
      [Failed] FileCopy - Failed to copy [%BaseDir%\Temp\livexp\shcTemp.ini] to: [%BaseDir%\Temp\livexp\Shortcuts\Files\Ghost\ghost32.exe_2008-Oct-23 110644275.shc]
      [Warning] Halt
       Processing section: [Add-Shortcut] From file: [%BaseDir%\Projects\LiveXP\Basic\Shells\Explorer.Script]
             [Parameter] with parameters: [C:\Copy#$sof#$sWinBuilder75b4\Temp\livexp\Shortcuts\Files\Ghost\ghost32.exe_2008-Oct-23#$s110644275.shc]
             Processing section: [shc-model] From file: [%BaseDir%\Projects\LiveXP\Basic\Shells\Explorer.Script]
                   [Parameter] with parameters: [C:\Copy#$sof#$sWinBuilder75b4\Temp\livexp\Shortcuts\Files\Ghost\ghost32.exe_2008-Oct-23#$s110644275.shc]
             Processed section [shc-model] in file: [%BaseDir%\Projects\LiveXP\Basic\Shells\Explorer.Script]
       Processed section [Add-Shortcut] in file: [%BaseDir%\Projects\LiveXP\Basic\Shells\Explorer.Script]
Processed section [Add-Shortcut] in file: [%BaseDir%\Projects\LiveXP\Basic\Build\4 - buildModel.Script]
Processed section [AddShortcut_Desktop] in file: [%BaseDir%\Projects\LiveXP\Basic\Build\api.script]
Processed section [_Translate_3] in file: [%BaseDir%\Projects\LiveXP\Basic\Build\api.script]
Processed section [AddShortcut] in file: [%BaseDir%\Projects\LiveXP\Basic\Build\api.script]
Processing section: [Depack] From file: [%BaseDir%\Projects\LiveXP\Basic\Build\api.script]
Processed section [Depack] in file: [%BaseDir%\Projects\LiveXP\Basic\Build\api.script]
[Clock] Script time: 7 seconds and 109 miliseconds


Hope it helps.
+Quote Post
post Oct 23 2008, 06:47 PM
Post #643
Lancelot
Frequent Member   ******
Group: .script developer

  Joined: 8-May 08 From: Turkiye/Izmir

Posts: 3,520
Thank(s): 380


Turkiye


cjc343

I made a ghost script with parameters, it works with new api, it is not ready to publish for now (needs some more addings from my point of view), but here it is to help you, maybe you find out what is hapening.

http://lancelot.winbuilder.net/5F/Ghost11_Lance.script
put required files (ghost32.exe, Ghostexp.exe, GhostSrv.exe) to %ScriptDir%\Ghost11_Lance_Files

And it will be better if you attach your script (at least without files in it) so masters can find out the issue more easly.


--------------------
+Quote Post
post Oct 23 2008, 10:49 PM
Post #644
cjc343
Newbie   *
Group: Members

  Joined: 30-July 08
Posts: 25
Thank(s): 2


United States


Script minus encoded files:

CODE
[Main]
title=Ghost
Description=Ghost Imaging
Selected=True
Level=5
Author=cjc343
Download_Level=0
Version=1
Mandatory=False

[variables]
%ProgramTitle%="Ghost 11"
%ProgramEXE%=ghost32.exe
%ProgramFolder%=Ghost

[process]
If,%pCheckBox1%,Equal,True,Add_Shortcut,QuickLaunch
If,%pCheckBox2%,Equal,True,Add_Shortcut,Desktop
If,%pCheckBox3%,Equal,True,Add_Shortcut,StartMenu
If,%pCheckBox4%,Equal,True,Add_Shortcut,StartMenu,Ghost11
If,%pCheckBox5%,Equal,True,Add_Shortcut,StartMenu,%pTextBox1%
//===>  Add_Shortcut,[Type],[Folder],[FullFileName],[Title],[Work Folder],[Parameters],[IconFile( .ico .exe)],[StartMode(1, 2, 3, or 4)]
If,%pCheckBox6%,Equal,True,Add_Shortcut,Desktop,,,"Ghost11 Force-Clone_Bad-Blocks",,-FRO
If,%pCheckBox7%,Equal,True,Add_Shortcut,Desktop,,,"Ghost11 IWILLNOTMESSUPMODE",,-SURE
If,%pCheckBox8%,Equal,True,Add_Shortcut,Desktop,,,"Ghost11 Extreme-Compression",,-Z9
If,%pCheckBox9%,Equal,True,Add_Shortcut,Desktop,,,"Ghost11 Sector-by-Sector",,-IA
If,%pCheckBox10%,Equal,True,Add_Shortcut,Desktop,,,"Ghost11 Sector-by-Sector (LINUX)",,-IAL
If,%pCheckBox11%,Equal,True,Add_Shortcut,Desktop,,,"Ghost11 HELP",,-H
If,%pCheckBox12%,Equal,True,Add_Shortcut,Desktop,,,%pTextBox3%,,%pTextBox2%
//Add_Shortcut,Desktop
//Add_Shortcut,StartMenu
//Add_Shortcut,StartMenu,Ghost11
//Add_Shortcut,QuickLaunch
unpack

[EncodedFolders]
Folder

[Folder]

[EncodedFile-Folder-ghost.env]

[EncodedFile-Folder-ghost32.exe]

[Interface]
pCheckBox1="Add Quick-Launch Shortcut",1,3,8,10,200,18,True
pCheckBox2="Add Desktop Shortcut",1,3,8,30,200,18,True
pCheckBox3="Add Start Menu Shortcut - Imaging",1,3,8,50,200,18,True
pCheckBox4="Add Start Menu Shortcut - Ghost",1,3,8,70,200,18,True
pCheckBox6="Add Desktop Shortcut -FRO (Ignore bad sectors)",1,3,8,90,400,18,True
pCheckBox7="Add Desktop Shortcut -SURE (Less Prompts)",1,3,8,110,400,18,True
pCheckBox8="Add Desktop Shortcut -Z9 (Ultra Compress)",1,3,8,130,400,18,True
pCheckBox9="Add Desktop Shortcut -IA (Sector by Sector)",1,3,8,150,400,18,True
pCheckBox10="Add Desktop Shortcut -IAL (LINUX s-b-s)",1,3,8,170,400,18,True
pCheckBox11="Add Desktop Shortcut -H (HELP)",1,3,8,190,400,18,True
pCheckBox5="Add Start Menu Shortcut - ",1,3,8,279,200,19,False
pTextBox1=Folder,1,0,151,277,200,21,
pCheckBox12="Add Desktop Shortcut :",1,3,8,238,200,18,False
pTextBox2=Switches,1,0,352,235,200,24,-
pTextBox3=Name,1,0,142,235,200,21,"Ghost11 "

+Quote Post
post Oct 23 2008, 11:17 PM
Post #645
Lancelot
Frequent Member   ******
Group: .script developer

  Joined: 8-May 08 From: Turkiye/Izmir

Posts: 3,520
Thank(s): 380


Turkiye


cjc343

Everthing works fine with code you gave

Maybe your problem is the wb version
please try this, i guess wb075b5e will solve your problem
http://lancelot.winbuilder.net/5F_WB_Versi...r075_Beta5e.rar


--------------------
+Quote Post
post Oct 23 2008, 11:49 PM
Post #646
cjc343
Newbie   *
Group: Members

  Joined: 30-July 08
Posts: 25
Thank(s): 2


United States


That completely fixed it... was using the latest 75b5 from the winbuilder.net site.
+Quote Post
post Oct 24 2008, 08:28 PM
Post #647
fxscrpt
Frequent Member   ***
Group: .script developer

  Joined: 15-September 08
Posts: 347
Thank(s): 62


Germany


QUOTE (psc @ Oct 18 2008, 09:42 PM) *
You should not be surprised. I'm ALWAYS interested in issues improving WinBuilder.
But sometimes I need a chair.gif

Hello Peter,

writing %ProgramFiles% to registry (REG_SZ) always creates the value %ProgramFiles(x86)%
on x64. this is documented as 'WOW64 imlementation detail'

http://msdn.microsoft.com/en-us/library/aa384274.aspx
http://blog.kalmbachnet.de/?postid=89

maybe writing %programfiles% to registry is a simple fix on x64.
i prefer to implement fix in winbuilder, because many scripts use %ProgramFiles%
and fixed %programfiles% is much better then %ProgramFiles(x86)%.

cheers.gif
Peter
2 user(s) said "Thank you!" to fxscrpt for this fantastic post:
Lancelot, psc
+Quote Post
post Oct 24 2008, 11:00 PM
Post #648
Lancelot
Frequent Member   ******
Group: .script developer

  Joined: 8-May 08 From: Turkiye/Izmir

Posts: 3,520
Thank(s): 380


Turkiye


Continuing from not working creating minimized shortcut, here is a code that works by modifying created .lnk (source xpsp2english)


CODE
Run,%BuildModelScript%,Add-Shortcut,"DE","#$pSystemRoot#$p\system32\notepad.exe","Notepad_2_NotWorking","-SW:#$pSystemRoot#$p\system32#$q#$s#$q-SS:SW_SHOWMINIMIZED"
Run,%BuildModelScript%,Add-Shortcut,"DE","#$pSystemRoot#$p\system32\notepad.exe","Notepad_2","-SW:#$pSystemRoot#$p\system32#$q#$s#$q-SS:SW_SHOWMINIMIZED"
FileCopy,"%BaseDir%\Target\LiveXP\$ModelRAM\Documents and Settings\Default User\Desktop\Notepad_2.lnk","%ProjectTemp%"
ShellExecute,Open,"%Tools%\bpatcher.exe","%ProjectTemp%\Notepad_2.lnk 3C 07"
FileCopy,"%ProjectTemp%\Notepad_2.lnk","%BaseDir%\Target\LiveXP\$ModelRAM\Documents and Settings\Default User\Desktop"
FileDelete,"%ProjectTemp%\Notepad_2.lnk"


Already comes with livexp, in case here is bpatcher.exe
http://lancelot.winbuilder.net/5F/bpatcher.exe

I hope this helps for a permanent solution.


--------------------
+Quote Post
post Oct 25 2008, 11:13 AM
Post #649
psc
Guru   ******
Group: .script developer

  Joined: 14-July 06 From: Korschenbroich

Posts: 8,443
Thank(s): 441


Germany


QUOTE (fxscrpt @ Oct 24 2008, 10:28 PM) *
Hello Peter,

writing %ProgramFiles% to registry (REG_SZ) always creates the value %ProgramFiles(x86)%
on x64. this is documented as 'WOW64 imlementation detail'

http://msdn.microsoft.com/en-us/library/aa384274.aspx
http://blog.kalmbachnet.de/?postid=89

maybe writing %programfiles% to registry is a simple fix on x64.
i prefer to implement fix in winbuilder, because many scripts use %ProgramFiles%
and fixed %programfiles% is much better then %ProgramFiles(x86)%.

cheers.gif
Peter

Good finding, especially the second link with the case sensitivity.

It is possible to hardcode a 'special' into winbuilder that on registry work every (case independent) %ProgramFiles% is replaced by %programfiles%.

But that is really bad programming style.

I think that we have to do the work and convert all existing scripts.

The script generating tools also have to be rewritten. I'll do thin for my own tools, like Reg2WBS, trackWBInstall.

Peter

BTW: The 32 / bit compatibility is a big issue. I'll create a separate topic and start with your copy and my answer.


--------------------
Build the house starting with the basement rather than with the roof! But always have in mind how the roof should be made!

There are very rarely problems, in most cases there are issues.

There are never stupid questions, there can be only stupid answers.

+Quote Post
post Oct 25 2008, 02:43 PM
Post #650
Lancelot
Frequent Member   ******
Group: .script developer

  Joined: 8-May 08 From: Turkiye/Izmir

Posts: 3,520
Thank(s): 380


Turkiye


QUOTE (fxscrpt @ Oct 24 2008, 10:28 PM) *
maybe writing %programfiles% to registry is a simple fix on x64.
i prefer to implement fix in winbuilder, because many scripts use %ProgramFiles%
and fixed %programfiles% is much better then %ProgramFiles(x86)%.


At the moment there is one script in livexp (downloaded) that is effected by this, opera
Thanks a lot fxscrpt clap.gif clap.gif
i changed all ProgramFiles with programfiles. Both registering files on open/command and registering .html files worked nicely.
http://lancelot.winbuilder.net/5F_scriptsl...t/CD-Opera2.rar

Also i made minor interface/cosmetic changes as new winbuilders have smaller gui at startup. Before - After

I guess this script work nicely with x86 too?

I hope Medevil find these changes acceptable?!


--------------------
+Quote Post

184 Pages V  « < 63 64 65 66 67 > » 
Reply to this topic
4 User(s) are reading this topic ()





Collapse

  Topic Replies Topic Starter Views Last Action
No New Posts LiveXP shutdown process
4 Arjun 381 9th November 2009 - 01:43 AM
Last post by: TheHive
No new Topic has attachmentsLiveXP Troubleshooting
Various questions and answers
92 JohnBug 8,397 29th October 2009 - 02:25 PM
Last post by: amalux
No New Posts Topic has attachmentsLiveXP WB078 Slow Load
64.4Mb ISO Slowly loading....*VIDEO*
11 dsolomon 941 20th October 2009 - 06:56 PM
Last post by: psc
No New Posts LiveXP Adding Driver?
6 Furgy 696 13th October 2009 - 11:30 AM
Last post by: Lancelot
No new Topic has attachmentsLiveXP not detecting Raid Controller
39 pantner 2,329 7th October 2009 - 04:22 AM
Last post by: Galapo


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

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