how to backup original rom. Help pls - XPERIA X1 General

Hi Everybody
I used the search function but maybe I am blind. What is the right way to dl the original rom from my x1? Do I need anything special to do that? (I lost about 3 years of htc knowledge while not using it at all).
Thank you in advance
H

solution
was a bit messy as I had to get half of the solution from another thread
kokotas
08-07-2008, 11:11 AM
Well, I don't think that the 2nd link is really helpful.
Try reading here: http://forum.xda-developers.com/showthread.php?t=382609
I guess that you could dump the ROM using itsme's tools (http://www.xs4all.nl/~itsme/projects/xda/tools.html) as pof shows in the above link and then someone could reconstruct(kaiser-way (http://forum.xda-developers.com/showthread.php?p=1586817#post1586817)) the .raws in a .nbh!
ps:if you have problem "updating itsutils.dll,etc" try typing in a cmd:
cd "where itsutils are extracted"
prapi -s HKLM\Security\Policies\Policies "00001001" integer 1
prapi -s HKLM\Security\Policies\Policies "0000101a" integer 1
before you run pdocread!
Regards!
My 5 cents: Just as a tip from my side. I copied and pasted the result of the pdocread.exe -l to my notepad, changed the settings there double checked (made about 100000 spelling mistakes had to do it 5 times but it worked fine). It takes a loooong time....but works.
The part about the prapi was verry important for me without that it didnt work!
while doing this for every part i dled, there came up on the x1 a huge text about some settings, honestly I didnt understood half of it, so i tapped NO and it worked
Cheers
H

hi prob this one and got the followring errors:
Code:
c:\htc\utils>pdocread.exe -l
Copying c:\htc\utils\itsutils.dll to WCE:\windows\itsutils.dll
Could not update itsutils.dll to the current version, maybe it is inuse?
try restarting your device, or restart activesync
or maybe your device is application-locked.
c:\htc\utils>prapi -s HKLM\Security\Policies\Policies "00001001" integer 1
ERROR: CeProcessConfig - r=00169390 ce=00000019 le=00000000 hr=80070005
- Zugriff verweigert (Access Denied)
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\Security\Policies\Policies" translation="filesystem">
<parm-error name="00001001" datatype="integer" value="1" desc="Access Denied"/></characteristic>
</characteristic>
</wap-provisioningdoc>
c:\htc\utils>prapi -s HKLM\Security\Policies\Policies "0000101a" integer 1
ERROR: CeProcessConfig - r=00169390 ce=00000019 le=00000000 hr=80070005
- Zugriff verweigert (Access Denied)
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\Security\Policies\Policies" translation="filesystem">
<parm-error name="0000101a" datatype="integer" value="1" desc="Access Denied"/></characteristic>
</characteristic>
</wap-provisioningdoc>
Solution: install the enablerapi.zip on the phone. extract it, copy it to the phone and install it. after this everything works.

Related

updated itsutils

see http://wiki.xda-developers.com/index.php?pagename=XdaUtils
download: http://nah6.com/~itsme/download/itsutl050119.zip
changes: 040318 -> 050119
* made hexdumping interface more universal among different tools
* switched compiler from EVC3 to EVC4
* added tffsreader interface to itsutils.dll
* itsutils logs to \storage on smartphones
* added 'readphysicalmemory' -p option to pmemdump
* pps now also works on smartphones
* added more handle interpreters to 'testpi.cpp'
* added cpu speed testing tool
* added several requests and notifications to RilClass.cpp
* dump can now also save a chunk of a file
* more types of hexdump formatting.
* pdblist now also supports volumes
* added pdocread tool, to read from tffs / DOC chips
* added new himalaya, and magician roms support to pnewbootloader
* added option to pput, to take data from stdin.
* pregutl now compiles both to wince and win32 tool
* merged psdread and psdwrite tools
willem
Perfect... !!!
THANX )
How about dumping INROM files? Do you plane to look into it?
THANX again
buzz
for that i already wrote dumprom a while back.
it is not really on my priority list to make file extracted with dumprom individually accessible via dumprom.
a thing i am thinking about for a while, is to create a loader for IDA, to directly access wince roms.
error itsutils
hi, :wink:
i have this error with e200 smartphone 2003 (last rom imate) unloked with "SecurityOFF" :
Code:
Copying D:\spv\itsutils\build\itsutils.dll to WCE:\windows\itsutils.dll
ERROR: ITGetProcessList - Erreur non spécifiée
:?
my SecurityPolicy :
Code:
<characteristic type="SecurityPolicy">
<parm name="4119" value="16"/>
<parm name="4101" value="16"/>
<parm name="4102" value="1"/>
<parm name="4097" value="1"/>
</characteristic>
:roll:
did you sign itsutils.dll ?
yes, with "signcode.exe" in smartphone SDK ...
and :
Code:
<parm name="4102" value="1"/>
is only for exe ? not dll ?
hmm. I don't know, I have the same settings, and still have to sign before I can run stuff.
the page on msdn describing the policies is gone.
can you run the attached file on your phone? it tests very basically if the itsutils.dll works.
it should result in a file 'tstits.log' containing something like this:
Code:
hLib= 8d0e3000
GetProcAddress= 019610e0
resultcode=0000000a size=0 buf=00000000
sign this file too, before copying it to your phone.
I have make a hard reset , and only SecurityOff,
result (withtout signature):
Code:
hLib= 8cee7ecc
GetProcAddress= 013810e0
resultcode=0000000a size=0 buf=00000000
result (with signature):
Code:
hLib= 8cee7ecc
GetProcAddress= 013810e0
resultcode=0000000a size=0 buf=00000000
is same ? ...
in attached file your exe with my signature ...
if that can help ...
that means that the dll is ok.
does 'pdir' work? that requires less rapi privileges.
does 'pps -v' output anything?
or 'pps -t' ?
or 'pmemdump 0x80000000'
yes when i call functions with rapi "classic" like "pdir" it is ok,
but when i call a function with CeRapiInvoke > error !!
:x
btw, my security settings are like this:
Code:
<wap-provisioningdoc>
<characteristic type="SecurityPolicy">
<parm name="4097" value="1"/>
<parm name="4101" value="64"/>
<parm name="4102" value="1"/>
<parm name="4119" value="196"/>
</characteristic>
</wap-provisioningdoc>
and I execute them like this:
Code:
rapiconfig.exe /p enable-rapi.xml
ok i found this post : http://smartphonedn.com/forums/viewtopic.php?t=880
I test ...
no and no ! :evil:
:arrow:
do all tools fail with different functions that report an error?
or does a simple tool like 'preboot' work?
it calls only one simple function remotely. - it should reboot your phone
.. and does it copy itsutils every time? or does it notice after one time that it is still on the device?
hmm. is your e200 maybe a smartphone2002 device?
I hae not checked to see if my tools still work on windows CE 3.0
maybe I introduced something that is not backward compatible.
The RapiConfigOut.xml of "rapiconfig.exe /p enable-rapi.xml" is :
Code:
<wap-provisioningdoc>
<characteristic type="SecurityPolicy">
<parm name="4097" value="1"/>
<parm name="4101" value="64"/>
<parm name="4102" value="1"/>
<parm name="4119" value="196"/>
</characteristic>
</wap-provisioningdoc>
:wink:
--------------------------------------------------------
the Spv e200 (orange) is a Windows Mobile Smartphone 2003 (no SE !)
--------------------------------------------------------
pdir ok
prun = ok
--------------------------------------------------------
preboot =
Code:
Copying D:\spv\itsutils\build\itsutils.dll to WCE:\windows\itsutils.dll
result=80004005
but no reboot ! :?
--------------------------------------------------------
pdblist -v =
Code:
volume {00000000000000000000000000000000} SystemHeap
volume {9a8ff820d3acfc9199a72d0b2b06e7c1} \Storage\mxip_notify.vol
volume {7089f1c2067b0c0de186a36d5714b303} \Storage\mxip_lang.vol
volume {5b803001329e90b88143b87b0f611b87} \Storage\mxip_initdb.vol
volume {eaa83ddb9441e7ba450a9c4dff287aa1} \Storage\cemail.vol
volume {ed8ff821f6acfc2042a760c8ca285f06} \Storage\mxip_system.vol
:wink:
--------------------------------------------------------
pmemdump -f essai.txt =
Code:
Copying D:\spv\itsutils\build\itsutils.dll to WCE:\windows\itsutils.dll
ERROR: ITGetContext - Erreur non spécifiée
error getting process context
--------------------------------------------------------
".. and does it copy itsutils every time?" -> yes
"or does it notice after one time that it is still on the device? " -> never !
...
and are you a link/name for a other software with "ceRapiInvoke" for testing ... ?
thank you
pps -v =
Code:
Copying D:\spv\itsutils\build\itsutils.dll to WCE:\windows\itsutils.dll
result=80004005 buf=00000000 size=00000000
ERROR: ITGetProcessList - Erreur non spécifiée
here another version of tstitsutils.exe, which tests more.
can you run it again?

Restoring Wi-Fi settings after hard reset: WM6 Wizard

Hi all,
I've used a Wizard ROM kitchen to build a (WM6) ROM the way I like it - it installs fine, then customises my Today theme and personal registry settings from the Extended ROM... all well and good.
One niggling problem though... I would love to restore my WiFi settings from a hard reset.
I can configure the setup manually with no problem; I use WEP (KeyIndex 1), key not provided automatically, do not use 802.11x authentication... my SSID is hidden, but I don't mind going into the connection dialog after the hard reset and checking the "this is a hidden network" box - that's the least of the problems (as you will see)...
I am aware that I need to use XML to do this, and have tried it using Cuccureddu's tips from this thread http://forum.xda-developers.com/showthread.php?p=1227587 (using provxml) and also tried from _setup.xml in a CAB file: I've not tried this from the ExtRom yet, as whenever I run the CAB using File Explorer (with no WiFi network info set up) I receive an error saying "Installation of wifi.cab was unsuccessful".
I've tried this with Wifi enabled and Wifi disabled, btw...
How I did it:
- Created a file in Notepad with all my settings, as follows - I went to the MSDN pages as mentioned in cuccureddu's post, as my network uses WEP:
<wap-provisioningdoc>
<characteristic type="CM_WiFiEntries">
<characteristic type="MySSID">
<parm name="DestID" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>
</characteristic>
</characteristic>
<characteristic type="Wi-Fi">
<characteristic type="access-point">
<characteristic type="MySSID">
<parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>
<parm name="Encryption" value="0"/>
<parm name="Authentication" value="0"/>
<parm name="NetworkKey" value="myNetworkKey"/>
<parm name="KeyIndex" value="1"/>
<parm name="KeyProvided" value="0"/>
<parm name="Use8021x" value="0"/>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
OK? For Parameters "KeyProvided" and "Use8021x" the MSDN pages say to use Boolean operators, so I've tried it with "true" and "false", then with "1" and "0"...
Made the cab in the following ways:
1. As stated in the linked post, using .provxml.xml and the MakeCab.exe from Windows XP (with .provxml.xml saved as UTF-8, then Unicode - as another post indicated it should be saved as UTF-8(?!?)).
2. As above, saving .provxml.xml both as UTF-8 and then Unicode, but using the MakeCab.exe from the WM5 SDK.
3. Then tried adding the XML to one of my registry settings cabs using WinCE Cab Mgr (v2.0); put it in the Provisioning XML (post). The CAB ran as usual, injected the registry keys that were there before but did nada to the WiFi settings.
4. Then renamed the .provxml.xml to wifi_setup.xml and tried both Makecabs (again, tried saving the XML as UTF-8 and then as Unicode) as follows:
Makecab.exe /D COMPRESS=OFF wifi_setup.xml wifi.cab
... in the hope that this would inject the XML as _setup.xml...
Note: I transferred the file in all above cases over ActiveSync to my Storage Card, which is where it was run from.
5. Finally, I redid the file as per cuccureddu's instructions (saved as Unicode), Makecabbed it using WM5 SDK Makecab exactly per instructions, then ZIPPED the CAB and Activesynced it to my Storage Card. Ran it. "Installation of wifi.cab was unsuccessful".
Hmmm...
So, I'm a little stuck... does anybody have any ideas, or want further info?
TIA for any help you can give...
Joel
I guess the ideal solution would be like you often see in operator's Extended ROMs - WifiTempON is run, then a CAB file runs to set up e.g T-Mobile hotspot SSIDs, then WifiTempOFF is run...
Hope somebody can help, I'm starting to go round the bend here
Bump...! Any ideas anyone?
this been done yet??
I succesfully use this script in a cab file after every hard reset on my TyTn,
it sets also wan parameters and hidden ssid chekbox. The cab was created
with makecab standard command.
Hope it works for you also.
<wap-provisioningdoc>
<characteristic type="CM_WiFiEntries">
<characteristic type="My_SSID"> (do not change this value and delete this comment)
<parm name="DestID" value="{A1182988-0D73-439e-87AD-2A5B369F808B}"/>
</characteristic>
</characteristic>
<characteristic type="Wi-Fi">
<characteristic type="access-point">
<characteristic type="YourSSID to insert">
<parm name="DestId" value="{A1182988-0D73-439e-87AD-2A5B369F808B}"/>
<parm name="Encryption" value="0"/>
<parm name="Authentication" value="0"/>
<parm name="hidden" value="1"/>
<parm name="KeyProvided" value="0"/>
<parm name="NetworkKey" value="yourPWD to insert"/>
<parm name="KeyIndex" value="1"/>
<parm name="Use8021x" value="0"/>
</characteristic>
</characteristic>
</characteristic>
<characteristic type="Registry">
<characteristic type="HKLM\Comm\TIACXWLN1\Parms\TCPIP">
<parm name="EnableDHCP" value="0" datatype="integer"/>
<parm name="AutoCfg" value="1" datatype="integer"/>
<parm name="WINS" value="" datatype="multiplestring"/>
<parm name="DNS" value="Your one" datatype="multiplestring"/>
<parm name="DefaultGateway" value="Your one" datatype="multiplestring"/>
<parm name="Subnetmask" value="Your one" datatype="multiplestring"/>
<parm name="IpAddress" value="Your one" datatype="multiplestring"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>
Best regards J.
Wow - can we use cabs to switch between wifi settings?
Awesome idea. I am trying to adapt it for use in this situation.
http://forum.xda-developers.com/showthread.php?p=1671601#post1671601
Multiple WIFI networks, setup multiple CAB files that you can just run depending upon your WIFI location and it will adjust your network card settings (eg DHCP \ Fixed IP), but also your SSID and WEP keys etc.
I have created my XML file and CAB files but it doesnt seem to function correctly. In fact, it appears not to have made any change at all to the network card settings yet it appers to have executed without errors.
did not tryed this way, but a soft-reset should be needed after every
change of your net settings. Ok, I'm shure you tried it yet..
I use it after an hard reset and at the end the phone reboots naturally.
Everyway you can use a reg editor wich allows you to dump your
ppc registry and look for changes in it, that's the way I've found some
of that reg-keys.
It's also usefull to discover if a key is really changed or not..
bye J.
Yup - thanks, I use registry workshop from my PC and hit F5 (refresh) after i run the cab file, watch it change instantly on the mobile registry. The network settings, eg IP etc and even now the WIFI network now function perfectly.
I am trying to get the "restart" working after a cab install, the network settings work fine, but if you switch it to DHCP (from fixed) it needs a reboot of the WLAN NIC Card obviously to activate DHCP address.
You can either soft-restart the phone, or just use comms manager to deactive-reactivate the WIFI. I am trying to find a (via cab file provisioning) cleaner way to restart the WIFI service.
Must say, thanks heaps for your code and links, helped me heaps in the early days.
Mhhmmm I see you're using a Shap's rom... you could try to invoke
shap's advanced config with his parameter to reset the device
eg. I use a shortcut to it with this line inside:
\Extended_ROM\AdvancedConfig.exe /reset
I didn't tested if it could be invoked from a cab file
Bye J.
edit: sorry I've missread your topic... but if a soft reset is not a big problem..
jarod_73 said:
Mhhmmm I see you're using a Shap's rom... you could try to invoke
shap's advanced config with his parameter to reset the device
eg. I use a shortcut to it with this line inside:
\Extended_ROM\AdvancedConfig.exe /reset
I didn't tested if it could be invoked from a cab file
Bye J.
edit: sorry I've missread your topic... but if a soft reset is not a big problem..
Click to expand...
Click to collapse
Top tip .. thanks!

undo HTC+Touch+Dual-default-ABC.cab

Hi all,
I have a touch dual I've launched the HTC+Touch+Dual-default-ABC.cab file to set the "abc" as default instead of the "XT9" but I was wondering how I can go back to the normal (XT9-default) situation?
Cheers
B
Have you tried to uninstall the cab through Settings -> System -> Remove Programm?
tried it... but the cab isn't mentionned in the list strangly enough...
nobody? is there a way that I can "read" the cab so I know which registry settings have been altered?
cheers
B
I think I've got it, I've installed MSCEInf (freeware) and looked around a bit in the CAB until I noticed an XML with following content:
Code:
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\SOFTWARE\Tegic\eT9\IME" translation="filesystem" >
<parm name="CarrierDefaultTextMode" datatype="integer" value="0" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
I've altered the value to 1 and XT9 was back to default
Cheers
B
berre said:
I think I've got it, I've installed MSCEInf (freeware) and looked around a bit in the CAB until I noticed an XML with following content:
Code:
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\SOFTWARE\Tegic\eT9\IME" translation="filesystem" >
<parm name="CarrierDefaultTextMode" datatype="integer" value="0" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
I've altered the value to 1 and XT9 was back to default
Cheers
B
Click to expand...
Click to collapse
Is there no easier solution to do this? Like another CAB file for example
would be great indeed but I didn't find it anywhere so I started playing around in the registry until I found it...
cheers
B
easier??!! you too lazy reg edit 1 value??!! blimey o'riley! i think you'd rather order takeout than open a tin of beens!

Install Builder 0.7

I recently read about the QuickCab 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
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.
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
Code:
[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]
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)
Code:
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.
Code:
[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
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 =
Code:
----- 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
Code:
<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
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
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"
DefaultDirName={app}
DestDir: "{app}\Application Data\Manila"
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.
Greetings
You can use
DefaultDirName={pf}\Manila
DestDir: "{app}\Application Data"
{app} is actually DefaultDirName defined above.
Regards
Joseph Leung
Good deal, thanks. I'll give it a try.
What language is this written in?
lycj said:
Greetings
You can use
DefaultDirName={pf}\Manila
DestDir: "{app}\Application Data"
{app} is actually DefaultDirName defined above.
Regards
Joseph Leung
Click to expand...
Click to collapse
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.
I found a bug
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

How to Delete!

I am writing the following code in a _Setup.xml file to delete a shortcut.
<wap-provisioningdoc>
<characteristic type="FileOperation">
<characteristic type="\Windows\Start Menu\Programs\Pictures & Videos.lnk" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete" />
<parm name="SelfRegister" />
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
there is a problem with the "&" character in the file name.
I am assuming xml doesn't support deleting a file which has a special character in its name.
How how do I delete it?
No replies?!?!?
The & character represent escape string in XML.
You may try replace & with & so the string should be "\Windows\Start Menu\Programs\Pictures & Videos.lnk"
Please let me know if this helps
try && instead of &
Lagz0ne said:
The & character represent escape string in XML.
You may try replace & with & so the string should be "\Windows\Start Menu\Programs\Pictures & Videos.lnk"
Please let me know if this helps
Click to expand...
Click to collapse
It worked God bless you!!!!
I actually went mad figuring it out!!!
Thanks a lot...
6Fg8 said:
try && instead of &
Click to expand...
Click to collapse
&& doesn't work..!

Categories

Resources