View Full Version : Install Builder 0.7
lycj
18th September 2008, 10:17 AM
I recently read about the QuickCab (http://forum.xda-developers.com/showthread.php?t=400221) software that allow creation of PPC cabinet, and the request for shortcut creation, as well as Vista compatibility problem. I would like to present another software that do the same work.
Install Builder is a free standalone application that allow novice user to create setup cabinet for Pocket PC and Smart Phone. Install Builder use a simple ini file to store project settings, you can use simple editor like notepad to edit the ini file.
The setup cabinet contain binary encoded and xml installation file plus all application files. It support two installation mode (ActiveSync --> PPC, PPC --> PPC). The setup cabinet can copy files, make shortcuts and add registry keys.
Requires the .Net Framework 2.0 too!
Warning : You can only place file in the following directories and it's subdirectories at this time : (that means, no absolute path supported)
{app}, {pf}, {win}, {startup}, {mydocu}, {group}, {fonts}, {startmenu}
This software is freeware and opensource.
http://www.quickzip.org/softwares-installbuilder
logger
18th September 2008, 10:45 AM
Gee that is serendipitous. I just posted a request for something like this at just about the same time you posted. Thanks a lot. Will give it a try. Sounds like just what I am after.
logger
18th September 2008, 02:19 PM
Iycj
I have been trying to use your tool. I can get it to make the CAB alright which is a big step in the right direction for me. Problem is when place the CAB on my HTC Diamond and install it comes up with a "cannot be installed - try different location" error. As I am a newb with this could you please take a look at the below Inno code to see what I have done wrong. BTW I am using DefaultDirName={pf}\debug to test it and I would also like to ask what the correct syntax is to replace {pf} with the root folder on my Diamond device.
Thnx and Regs
Logger
[Setup]
AppName=3DiamondShortcuts
Author=Logger
TargetPlatform=StrongArm
DefaultDirName={pf}\debug
Description=loggers mods for the Diamond
[Files]
Source: "C:\Users\Logger\Work\3Diamond Shortcuts\three.png"; DestDir: "\Application Data\Manila"; Flags: "NoOverwrite"
Source: "C:\Users\Logger\Work\3Diamond Shortcuts\Manila\InternetPortal.xml"; DestDir: "\Windows"; Flags: "NoOverwrite"
[Icons]
[Registry]
lycj
18th September 2008, 03:17 PM
Greetings
Root folder must be specified so,
DestDir: "\Windows" ===> DestDir: "{win}"
As for \Application Data\ directory, because this entry wasnt here when I first develop the product (in 2006), I need the code for that folder. the current list of folders is as below : (http://www.cabextract.org.uk/wince_cab_format/#files have more info)
app = 0, // %InstallDir%
pf = 1, // \Program Files
win = 2, // \Windows
startup = 4, // \Windows\StartUp
mydocu = 5, // \My Documents
group = 11, // \Windows\StartMenu\Programs
fonts = 15, // \Windows\Fonts
startmenu = 17 // \Windows\StartMenu
And you can use the code directly, e.g. {app} is equal to {0}.
I have examined the code created by QuickCab, please try the following and see if it works.
[Setup]
AppName=3DiamondShortcuts
Author=Logger
TargetPlatform=StrongArm
DefaultDirName=\
Description=loggers mods for the Diamond
[Files]
Source: "C:\Users\Logger\Work\3Diamond Shortcuts\three.png"; DestDir: "{app}\Application Data\Manila"; Flags: "NoOverwrite"
Source: "C:\Users\Logger\Work\3Diamond Shortcuts\Manila\InternetPortal.xml"; DestDir: "{win}"; Flags: "NoOverwrite"
[Icons]
[Registry]
Regards
Joseph Leung
logger
19th September 2008, 04:01 AM
Joseph, Sorry for the slow reply. Had to work last night.
Tried your code. If I use "DefaultDirName=\" as per your suggestion, I get "Dirs.Offset dont match Writer's position!" and install builder does not create the cab.
So I changed ONLY "DefaultDirName={app}\" in your suggested inno and the build succeeds.
However installing the CAB on my diamond still fails with an unsuccessful message.
i do not know if the following gives any clues?
debug.txt =----- Debugging -----
----- Dir Section -----
InstallDir = %CE0%
2 = {app}\Application Data\Manila
3 = {win}
----- File Section -----
three.png --> {app}\Application Data\Manila (NoOverwrite)
InternetPortal.xml --> {win} (NoOverwrite)
--- Registry Section ---
----- Link Section -----
----- End Debug -----
_setup.xml looks like this
<wap-provisioningdoc>
<characteristic type="Install">
<parm name="InstallPhase" value="Install" />
<parm name="OSVersionMin" value="0.0" />
<parm name="OSVersionMax" value="0.0" />
<parm name="BuildNumberMin" value="0" />
<parm name="BuildNumberMax" value="0" />
<parm name="AppName" value="Logger 3DiamondShortcuts" />
<parm name="InstallDir" value="%CE0%" translation="install" />
<parm name="NumDirs" value="2" />
<parm name="NumFiles" value="2" />
<parm name="NumRegKeys" value="0" />
<parm name="NumRegVals" value="0" />
<parm name="NumShortcuts" value="0" />
</characteristic>
<characteristic type="FileOperation">
<characteristic type="%InstallDir%\Application Data\Manila" translation="install">
<characteristic type="MakeDir" />
<characteristic type="three.png" translation="install">
<characteristic type="Extract">
<parm name="Source" value="0three~1.001" />
</characteristic>
</characteristic>
</characteristic>
<characteristic type="%CE2%" translation="install">
<characteristic type="MakeDir" />
<characteristic type="InternetPortal.xml" translation="install">
<characteristic type="Extract">
<parm name="Source" value="Intern~1.002" />
</characteristic>
</characteristic>
</characteristic>
</characteristic>
<characteristic type="Registry" />
</wap-provisioningdoc>
Thanks for your patience here.
Logger
lycj
19th September 2008, 10:32 AM
Greetings
I checked the code, it cannot handle absolute path at this time, I do not have a fix right now, I will fix the problem once I have the time, until then, please use relative path only.
Regards
Joseph Leung
logger
19th September 2008, 03:41 PM
OK thanks. Still confused. Could you PLS give me a very simple example of relative path syntax that will actually work.
Does this mean:
DefaultDirName=\{app}
DestDir: "\{app}\Application Data\Manila[B]"
DefaultDirName={app}
DestDir: "{app}\Application Data\Manila[B]"
or something else? Either of these will create a cab for me but neither will install. Perhaps I had best wait until you get around to fixing it so it can do absolute cos I am confused by the syntax.
Thnx.
lycj
19th September 2008, 05:10 PM
Greetings
You can use
DefaultDirName={pf}\Manila
DestDir: "{app}\Application Data"
{app} is actually DefaultDirName defined above.
Regards
Joseph Leung
<insertwittyusernamehere>
20th September 2008, 01:19 AM
Good deal, thanks. I'll give it a try.
What language is this written in?
logger
20th September 2008, 05:31 AM
Greetings
You can use
DefaultDirName={pf}\Manila
DestDir: "{app}\Application Data"
{app} is actually DefaultDirName defined above.
Regards
Joseph Leung
Thanks, that works on my Diamond. Although it places the files in
\Program Files\Manila\Application Data\.
Just tried
DefaultDirName={win}
DestDir: "{app}\Manila"
and that places the files in \Windows\Manila
So thanks, I can get your program to work. But it is not a lot of use to me until I can specify the root directory as DefaultDirNam. Otherwise it is not possible to install files to more than 1 upper level directory.
This is because DestDir has to be relative to DefaultDirNam. As it is I cannot tell it to install files in two upper level folders because you have to specify a single location in DefaultDirNam and it will not allow you to specify the root.
For example I want files to go into both
\Application Data\ Manila
\Windows
so I would need to specify something that would give
DefaultDirName={root}
DestDir: "{app}\Application Data\ Manila"
DestDir: "{app}\Windows"
If I was to specify {win} as DefaultDirNam I can send some files there, but in doing so I preclude the possibility of sending files to \Application Data\ Manila because \Application Data is not a child folder of \Windows.
Also as an aside I have found I can successfully send files to {pf},{win} but not {app}. If I set {app} in DefaultDirNam install fails for some reason.
Anyway thanks for the app. Just need to be able to speficy the root in DefaultDirNam and all would be good.
Cheers.
misch09
11th February 2009, 11:28 PM
Hi!
This is really a usrful app to me. thx.
Today I have tried to create a cab and to install it, but the installation failled.
I was looking for the reason the whole day and finally I found it.
I have a german special character in my name: ü
after changing the value of the Author tag, it worked fine.
regards,
misch
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.