Quantcast
Channel: WinBuilder
Viewing all articles
Browse latest Browse all 1056

Problem with 1 apps shortcut not appearing in build

$
0
0

I'm running into a problem creating the start menu shortcut for my script.  Everything else works perfectly.  I have other apps that I built and/or modified and the shortcuts are OK.  This is for the BartPE version of Get Data Back for NTFS.   I've tried a number of different methods to create the shortcut, from simple to more advanced. Below are 2 of the script I've tried.  The program installs and registers corrrectly.  I can even start Explorer, find the exe and run it with no errors.  I even downloaded a completely new copy of Winbuilder 082 and Win7PSE in hopes that something had gotten corrupt and that would fix it.  The scripts are fairly simple.  Any help would be greatly appreciated.

Thanks,

Keith

 

Initial Script

[Main]
Title=GetDataBack for NTFS
Level=4
Type=Script
Selected=True

[Process]
IniRead,"%ProjectInfo%","TargetStrings","sProgram_Files","%WorkDir%"
Echo,Processing files Build[(None)]...
DirMake,"%TargetDir%\I386\system32"
DirMake,"%TargetDir%\%WorkDir%\programs\gdbnt"
FileCopy,"%ScriptDir%\gdbnt.exe","%TargetDir%\%WorkDir%\programs\gdbnt\"
FileCopy,"%ScriptDir%\gdbnt.DEU","%TargetDir%\%WorkDir%\programs\gdbnt\"
FileCopy,"%ScriptDir%\gdbnt.FRA","%TargetDir%\%WorkDir%\programs\gdbnt\"
FileCopy,"%ScriptDir%\gdbnt.ini","%TargetDir%\%WorkDir%\programs\gdbnt\"

Echo,"Loading registry hive: [software]"
Echo,"Writing new values on registry hive.."
RegHiveLoad,Tmp_Software,%RegSoftware%
RegWrite,"HKLM",0x1,"Tmp_Software\Runtime Software\GetDataBackNT","InstallDir",\programs\gdbnt
RegWrite,"HKLM",0x1,"Tmp_Software\Runtime Software\GetDataBackNT","Version",3.32.000
RegWrite,"HKLM",0x1,"Tmp_Software\Runtime Software\GetDataBackNT\License","Name","USER_NAME"
RegWrite,"HKLM",0x1,"Tmp_Software\Runtime Software\GetDataBackNT\License","Key",SERIAL_NUMBER
RegWrite,"HKLM",0x1,"Tmp_Software\Microsoft\Windows NT\CurrentVersion\Fonts","MS Sans Serif 8,10,12,14,18,24",SSERIFE.FON
RegWrite,"HKLM",0x1,"Tmp_Software\Microsoft\Windows NT\CurrentVersion\Fonts","MS Serif 8,10,12,14,18,24",SERIFE.FON
RegWrite,"HKLM",0x1,"Tmp_Software\Microsoft\Windows NT\CurrentVersion\Fonts","Small Fonts",SMALLE.FON
RegHiveUnLoad,Tmp_Software

Add_Shortcut,StartMenu

 

Modified Script

[Main]
Title=GetDataBack for NTFS
Level=4
Type=Script
Selected=True

[Variables]
%ProgramFolder%=gbnt
%ProgramEXE%=gbnt.exe
%ProgramTitle%=gbnt


[Process]
IniRead,"%ProjectInfo%","TargetStrings","sProgram_Files","%WorkDir%"
Echo,Processing files Build[(None)]...
DirMake,"%TargetDir%\I386\system32"
DirMake,"%TargetDir%\%WorkDir%\programs\gdbnt"
FileCopy,"%ScriptDir%\gdbnt.exe","%TargetDir%\%WorkDir%\programs\gdbnt\"
FileCopy,"%ScriptDir%\gdbnt.DEU","%TargetDir%\%WorkDir%\programs\gdbnt\"
FileCopy,"%ScriptDir%\gdbnt.FRA","%TargetDir%\%WorkDir%\programs\gdbnt\"
FileCopy,"%ScriptDir%\gdbnt.ini","%TargetDir%\%WorkDir%\programs\gdbnt\"


Echo,"Loading registry hive: [software]"
Echo,"Writing new values on registry hive.."
RegHiveLoad,Tmp_Software,%RegSoftware%
RegWrite,"HKLM",0x1,"Tmp_Software\Runtime Software\GetDataBackNT","InstallDir",\programs\gdbnt
RegWrite,"HKLM",0x1,"Tmp_Software\Runtime Software\GetDataBackNT","Version",3.32.000
RegWrite,"HKLM",0x1,"Tmp_Software\Runtime Software\GetDataBackNT\License","Name","USER_NAME"
RegWrite,"HKLM",0x1,"Tmp_Software\Runtime Software\GetDataBackNT\License","Key",SERIAL_NUMBER
RegWrite,"HKLM",0x1,"Tmp_Software\Microsoft\Windows NT\CurrentVersion\Fonts","MS Sans Serif 8,10,12,14,18,24",SSERIFE.FON
RegWrite,"HKLM",0x1,"Tmp_Software\Microsoft\Windows NT\CurrentVersion\Fonts","MS Serif 8,10,12,14,18,24",SERIFE.FON
RegWrite,"HKLM",0x1,"Tmp_Software\Microsoft\Windows NT\CurrentVersion\Fonts","Small Fonts",SMALLE.FON
RegHiveUnLoad,Tmp_Software
//Add_Shortcut,StartMenu

//Add_Shortcut,[Type],[Folder],[FullFileName],[Title],[Work Folder],[Parameters],[IconFile( .ico .exe)],[StartMode(1, 2, 3, or 4)]
If,%pCheckBoxStartMenu%,Equal,True,Add_Shortcut,StartMenu,%pTextBoxStartFolder%,%PE_Programs%\%ProgramFolder%\%ProgramEXE%,%pTextBoxStartTitel%
If,%pCheckBoxDesktop%,Equal,True,Add_Shortcut,Desktop,,%PE_Programs%\%ProgramFolder%\%ProgramEXE%,%pTextBoxStartTitel%
If,%pCheckBoxQuickL%,Equal,True,Add_Shortcut,QuickLaunch,,%PE_Programs%\%ProgramFolder%\%ProgramEXE%,%pTextBoxStartTitel%

[Interface]
pBevelShortcuts=pBevel1,1,12,6,6,395,170
pTextBoxStartTitel="Name for Shortcuts:",1,0,20,40,200,18,%ProgramTitle%
pTextBoxStartFolder="Start Menu folder:",1,0,20,90,200,21,%scriptfolder%
pTextLabeShortcutsTo="Add shortcuts to:",1,1,260,20,135,20,8,Normal
pCheckBoxStartMenu="Start Menu",1,3,260,50,200,20,True
pCheckBoxDesktop=Desktop,1,3,260,70,200,20,True
pCheckBoxQuickL=QuickLaunch,1,3,260,90,200,20,True
pCheckBoxRunRam="Run from ram (boot.wim)",1,3,20,141,183,18,False


 


Viewing all articles
Browse latest Browse all 1056

Trending Articles