If anything else is wrong, just let me know.
[Variables]%ProgramTitle%=GImageX%ProgramExe%=gimagex.exe%ProgramExex64%=gimagex_x64.exe%ProgramFolder%=GImageX%SetupFile%=GImageX.zip%SetupFilex64%=GImageX.zip%FileContainer%=%ScriptDir%\GImageX_XPE_File.Script[Process]Echo,"Processing %ScriptTitle%..."If,Not,ExistFile,%FileContainer%,Exit,"%FileContainer% Container File Not Found"If,%RunFromWhere_ScrollBox%,Equal,"Run From RAM",RunFromRAMIf,%Architecture%,Equal,x64,Run,%ScriptFile%,PluginSetx64//--//--To Enable (TargetAppDataLocal-TargetAppDataRoaming-TargetProgramData) Variables//AddVariables,%ProjectDir%\script.project,TargetBasePath//--Run,%ScriptFile%,Extract//--If,ExistDir,%Target_Prog%\%ProgramFolder%,DirDeleteQ,%Target_Prog%\%ProgramFolder%If,Not,ExistDir,%Target_Prog%,DirMake,%Target_Prog%If,Not,ExistDir,%Target_Prog%\%ProgramFolder%,DirMake,%Target_Prog%\%ProgramFolder%DirCopy,%GTemp%\%ProgramFolder%\%ProgramFolder%,%Target_Prog%FileCopy,%GTemp%\%ProgramFolder%\%ProgramFolder%\%ProgramExe%,%Target_Prog%\%ProgramFolder%//--Run,%ScriptFile%,Add_Shortcuts//--//ExtractSectionFiles,%ScriptFile%,AddFiles//--//Run,%ScriptFile%,Add_Registry//--//Run,%ScriptFile%,Add_Associations[AddFilesInfo]//- Extract files or folders from Install.wim image. Script Commands are not allowed//- Each path must be specified as an absolute path starting from the root.//- Wildcard char ’?’ and ’*’ are allowed. A comment begins with ;; (semicolon). ;;Example Comment[AddFiles]\Windows\System32\xxx.dll\Windows\System32\??-??\xxx.dll.mui[Add_Registry]//- Add Registry Values <-- Use RegCPE[Add_Associations]//- Associate,Ext <-- Three Letter File Extension[Add_Shortcuts]If,%Desktop_CheckBox%,Equal,True,AddShortcut,DesktopIf,%StartMenu_CheckBox%,Equal,True,AddShortcut,StartMenu,%StartMenuFolder_TextBox%If,%StartMpin_CheckBox%,Equal,True,AddPin,StartMenuIf,%TaskBpin_CheckBox%,Equal,True,AddPin,TaskBar[Extract]If,ExistDir,%GTemp%\%ProgramFolder%,DirDeleteQ,%GTemp%\%ProgramFolder%DirMake,%GTemp%\%ProgramFolder%ExtractFile,%FileContainer%,Folder,%SetupFile%,%GTemp%\%ProgramFolder%//ShellExecute,Hide,%GTools%\7z.exe,"x #$q%GTemp%\%ProgramFolder%\%SetupFile%#$q -y -aou -o#$q%GTemp%\%ProgramFolder%\%ProgramFolder%#$q"ShellExecute,Hide,%GTools%\7z.exe,"x #$q%GTemp%\%ProgramFolder%\%SetupFile%#$q -y -o#$q%GTemp%\%ProgramFolder%\%ProgramFolder%#$q"[PluginSetx64]Set,%SetupFile%,%SetupFilex64%Set,%ProgramExe%,%ProgramExex64%//Set,%ProgramFolder%,%ProgramFolder%_x64
Hi mbstechthanks, I think it would also be good to add help file.just add the chm to the zip and add something likeCode: [Select]FileCopy,%GTemp%\%ProgramFolder%\%ProgramFolder%\gimagex.chm,%Target_Prog%\%ProgramFolder%and a shortcutCode: [Select]AddShortcut,StartMenu,%StartMenuFolder_TextBox%,%PE_Programs%\%ProgramFolder%\gimagex.chm,"GimageX Manual"
Just realized it has been 3 months working on thisHope it was a learning experience for you..
You need something to open help file .chm
Hi JamesQuoteYou need something to open help file .chmit opens with Sumatra PDF automatically
Here is GImageX - To do as you wish...I created it in your name at the start of this Gimagex topicI just wanted you to learn from your mistakes..I believe GimageX Requires .Net Framework - Test XPEPlugin with and without NetFX4 selected on Build CoreCurrently I have the DOTNET requirement //Marked out in XPEPluginIf .Net Framework Not Required - Leave it Marked Out - Otherwise If .Net Framework Required Un-Mark that line
I also am going to include the CHM to this plugin as suggested by ATP
Also, since this plugin auto downloads the program, do I need to change the file script
Hi mbstechQuoteI also am going to include the CHM to this plugin as suggested by ATP I believe James has already done that in his modified versionQuoteAlso, since this plugin auto downloads the program, do I need to change the file script I don't think the _file script is required anymore