Install apps to Universal (WM6) using Linux host? - JASJAR, XDA Exec, MDA Pro General

Hi Folks.
Many programs for PocketPC are wrapped in MS-Windows .msi installers.
I will never understand why, I don't see any benefits coming with it and you always need a USB connection (not seldomly involving administrative privileges to get the device registered in Windows), active sync and so on, just to install some lousy program
I don't like MS Windows (the desktop versions) and therefore I don't have it and I don't use it. I have access to Windows computers at work, but not enough system rights on the machines to get a usb connection.
Is there a way to
either:
install programs on the Universal using alternative helper applications (GNU/Multisync etc.), preferably open source and running natively on linux machines?
or even better:
extract the .cab archive from an .msi or .exe installer file so it can be directly copied to the PDA and executed there?
I've played with Multisync a little, but it only seems to support contact synchronization, no software installation...

Well if you have a windows pc you can start the installation process,
then when it tells you to install the program on the universal,
don't click on install, but use total commander or a similar program
to search for *.cab files. You will find the cab somewhere.
Copy it to your sd card or wherever because after the installation completes
the cab will be deleted.
Another way would be to install Virtual box on your Linux machine and
install Windows on that. Then you can have the virtual machine use your
usb port.
You'd have to search on google to find information on how to do that.

I'm in the same situation: no windows machine to run installers from.
I've had some luck using cabextract ( http://www.cabextract.org.uk/ )
When that fails (quite often it does) I've usually been able to get the .CABs by running the installer under Wine.*
To do this, I had to install activesync under Wine. It's a while since I did this, but apparently I downloaded the file activesync_4.2.setup.exe from microsoft.com and ran that with Wine.
When you run an installer for a WM app, it won't actually install onto your device (that would be too easy!) and in fact I don't even bother connecting my uni to my linux box during this stage. The aim is simply to get the .CAB files extracted.
The app installer usually craps out at the stage when it would transfer the files to my uni, but it's already extracted the .CABs. I generally find these in
Code:
/my/wine/drive_c/Program\ Files/ActiveSync/
or
Code:
/my/wine/drive_c/Program\ Files/Name_of_Application/
or sometimes in
Code:
/my/wine/drive_c/windows/temp/
Hope this info is some use to you!
*Full disclosure: actually, I use the version of wine that comes with Google's picasa 2.2, wrapped in a little script to set up the environment variables. That script, which I call picasawine goes as follows:
Code:
#!/bin/bash
mydir=/opt/picasa
export PATH=$mydir/../wine/bin:$mydir:$PATH
export LD_LIBRARY_PATH=$mydir/../wine/lib:$mydir/../lib:$LD_LIBRARY_PATH
export WINEDLLPATH=$mydir/../wine/lib/wine
export WINELOADER=$mydir/../wine/bin/wine
export WINESERVER=$mydir/../wine/bin/wineserver
export WINEPREFIX=$HOME/.picasa
exec /opt/picasa/wine/bin/wine [email protected]
so I run as (eg)
Code:
picasawine SETUP.EXE

Related

Modify the ROM in other PDAs.

Hi, there is a huge interest in other communities about what you are doing in here. I can say only one word, unbelieveable.
I have a few questions,
1- has anyone tried to do the same using any other Pocket PC?
2- is there any thoughts about to create a version of mkrom for Windows (I believe that the current one is for Linux)?
TIA
Hello!
I have very interested in mkrom version for windows too....
Hark0
[www.klonycs.net]
P.S. Frank, please email-me if you have more info about this topic.
Ehm, Windows as in the 95/98/ME/2000/XP family of desktop Operating Systems does not run from ROM, it runs from disk. It does not have persistent RAM, and as such does not have a cold-boot vs. warm-boot, unless you count OS installation as a cold-boot.
You can modify properties of the installation procedure using installation scripting, and you can 'freeze' an install you like by creating an 'image backup' of the drive it's installed on.
Duh! The above shows how dense I can be. Ofcourse you mean running mkrom on Windows instead of unix, not running mkrom for Windows.
You should be able to run it on Windows already, if you install the ActiveState perl environment and mess with it little.
I'm thinking maybe we should offer an environment through a perl script and samba or ftp right here... Hmmm...
Yes we were talking about to run the mkrom on windows.
What you are saying about the Perl enviroment could be a solution but I'm not really familiar with that. Could be simplest to recompile or create a version of mkrom for Windows (to run on windows)?
I know you are busy guys but I think you have not understood the magnitude of what you have done. Right now you can find 1000s of users willing to modify the ROM of there PPCs, no matter what kind of PPC they have. So please... think with a wider perspective.
I have a few things I have tried in my page www.pc-counselor.com/e740rom.htm and as you can see there, in the case of a Toshiba e700 series is very easy to get a copy of the rom and put it back. A lot easier than in HP devices.
That was me in the previous message, I did not notice I was not logged. Sorry
XDA developer Itsme said:
a windows box with http://www.cygwin.com/ unix tools will do too.
make sure you select perl and bash in the cygwin setup tool.
Click to expand...
Click to collapse
Keep in mind that for those who are not familiar with Linux and perl, etc all these instructions sound like chinise.
:lol:
You could also use a CD-ROM version of Knoppix.
No hassle to install Unix, just boot from CD and make one of your HD partitions write-enable.
I think I managed to create a rom image with MKROM on windows, and since I've never done anythign like this before, I thought I'd try to explain the process I followed so that other unskilled user like me could do it as well.
to all you advanced user, please feel free correct this if it is wrong.
1. MKROM
Download the MKROM distribution archive from http://www.xda-developers.com/mkrom/
… read the page while you’re there!!
Unzip mkrom.zip somewhere easy to find (not on your desktop, because your desktop is not easy to find in a DOS/UNIX window, I would suggest c:\mkrom\)
2. O2 ROM
Also download the Radio Unit Upgrade from:
http://www.sourceo2.com/O2_Developers/Launched_devices/O2_xda/default.htm
Once downloaded right click on Radio_Unit_Upgrade_v31703.exe and select “winzip/open with winzip” (if you don’t have winzip, download the demo at http://www.winzip.com)
In Winzip Locate the the file nk.nbf and extract it to your c:\mkrom\ folder (be careful, by default winzip will create a folder called “English” and put nt.nbf it in that folder. You don’t want that! It should just be in the c:\mkrom folder)
3. install CYGWIN
MKROM needs to be run UNIX or Linux (don't know which) by default but you can apparently run it on windows by using one of these:
• Activestate (http://www.activestate.com/)
• Knoppix (http://www.knopper.net/knoppix/index-en.html)
• CYGWIN (http://www.cygwin.com)
I tried CYGWIN
• Download setup.exe from http://www.cygwin.com
And run it. (this is a small software that allows you to chooses which bits you want to download and install)
• I selected “install from the internet” but you can also download first then install from the local drive.
• on the next screen I left all the default as they were. I don’t know whether DOS or UNIX text file type is better here, so I just left the default: UNIX.
• On the next screen select a FTP server from the list.
• Now you’re presented with a list of packages to download. By default, you won’t get all the necessary ones (the ones for the PERL scripts).
I didn’t know which particular package was needed so I’ve just selected the whole DEVEL section. ( to do that, click on the DEFAULT next to DEVEL and it will change to INSTALL.
If someone could tell us which particular packages are actually necessary, this would cut down on the 100Mb download
The rest can stay as is.
This will download then install, nice and clean!
4. runnig MKROM
Double click the CYGWIN icon and this will open a “DOS” window (I know it’s not DOS, but it looks like it)
You will see a prompt with
Code:
[email protected] ~
$
type in :
Code:
cd c:\mkrom
or whatever you’ve saved it to (now you see why it’s better to keep it simple)
the XDA-Developers have included a README in mkrom.zip which specifies you then need to type in:
Code:
chmod +x tounicode
then you’re ready to go:
type the following:
Code:
bash mkrom.sh nk.nbf
let it run for a while, (it took a bit over a minute on my P700Mhz)
when you see the prompt again, you’ve done it!
As described in http://www.xda-developers.com/mkrom/ you now have 2 files in c:\mkrom\out\
xdaromimg-1.nb1
xdaromimg-1.nbf
I think the file xdaromimg-1.nbf is the same as the nk.nbf that’s in jeff’ release.
http://cuba.calyx.nl/~jsummers/XDA/XDA-developers-SER-v11.exe
It’s exactly the same size, but I don’t know how to check whether they are exactly the same files.
the next step is to rename your xdaromimg-1.nbf to nk.nbf and replace the one that's in XDA-developers-SER-v11.exe with your new one. (do this still using winzip) save it and run the exe.
!!!!!I haven't tried to flash my XDA!!!!! but I just I'd share my experience with you, please tell me if I've got all of this right.
Ben Darras
is this right
XDA- developers, Jeff, anyone else,
Could you confirm that this procedure is correct, before we start shooting ourselves in the foot! :shock:
Regards
Alex
Does cygwin have perl installed by default?
Jeff did something else we recommended, which is take the files needed for EzWAP from a machine with the O2 ROM installed, and copy them to one of the files directories of the new ROM.
But EzWAP is quite large, so if you never use WAP you could copy other stuff there that more suits your needs.
Otherwise, the above procedure looks correct at first sight. Mind you we use a Linux box, and we have no experience doing this under Windows.
We recommend all people that burn ROMs they built themselves have an PC SD-card writer have experience using 'XDArit', so they can always use the bootloader method to get back to where they were. Flashing the .nb1 file using 'XDArit' and an SD card is marginally safer, since using 'Programme A' could overwrite your bootloader if something went really, really wrong.
Once you have established a new ROM will get the unit back up to the point where it connects via ActiveSync, others can flash it without too much danger. But if you want to avoid all danger and be completely on the safe side then do not make your own ROMs...
Thanks for the answer, Peter Poelman
Does cygwin have perl installed by default?
Click to expand...
Click to collapse
no it doesn't, I suggested...
...By default, you won’t get all the necessary ones (the ones for the PERL scripts).
I didn’t know which particular package was needed so I’ve just selected the whole DEVEL section. ( to do that, click on the DEFAULT next to DEVEL and it will change to INSTALL.
If someone could tell us which particular packages are actually necessary, this would cut down on the 100Mb download
Click to expand...
Click to collapse
Thanks for the additional info and the warning.
I love what you guys are doing here!
Ben
Jeff did something else we recommended, which is take the files needed for EzWAP from a machine with the O2 ROM installed, and copy them to one of the files directories of the new ROM.
But EzWAP is quite large, so if you never use WAP you could copy other stuff there that more suits your needs.
Click to expand...
Click to collapse
I'm using the NK.nbf that came from Jeff's download. this is the one that has ezwap files in it? If so can i download o2 rom update from there website and use it to build a custom rom? i don't need ezwap on my ppc and rather use it for something else. is my logic correct?
thanks
alex
kalex said:
I'm using the NK.nbf that came from Jeff's download. this is the one that has ezwap files in it? If so can i download o2 rom update from there website and use it to build a custom rom? i don't need ezwap on my ppc and rather use it for something else. is my logic correct?
Click to expand...
Click to collapse
Correct. You can download mkrom like it is now, not add the EzWAP files, and you'd have more space for your own stuff in there.
If you want to check that two files are identical, try the unix 'diff' command (which should have been installed with cygwin)

Running a .exe

Hi peeps,
Is there an app or a trick where I can run an .exe file on my UK Vario without having to hook up to my pc?
TIA
What exe? How are you getting the file on to your phone?
V
When I'm out and fancy downloading something I generally download direct to my device and as a rule everything a in exe format so need a PC to run the app, game etc.
Not a particular exe just in general
Thanks
I think he meant that how can he extract the stuff he wants from a SETUP.EXE of a PPC software.
If it is an EXE, you can run (still need a PC) it on a PC, check the temp folder and get the CAB file. Copy and run this on your PPC.
Many thanks for the info, not quite what I mean.
For example I'm at work and browsing some ppc freeware I find this file pocketpictureinstall.exe and download it direct to my device.
Thats it I dont have my home pc to hand just my Vario and unless I run ActiveSync which I can't at work there is no way it will run on my device.
Is there any software out there that would allow me to provide the .cab files local on the device or just run the app?
Thanks again.
No not really. There are possible apps you could compile for the PPC to assist, but you'd have to be a coder. If not, then the easy answer is typically no - but many websites offer the choice to download the installer in cab format.. Look around.
V

RegDump & Diff Tools

I've attached two tools to be run under Desktop PC. First of them is NOT mine (freeware from dillsoft), but I have modified it to suit my needs. Connect your PDA to the PC and exec rdump.exe, choose a file name and then your PDA Registry will be dumped (as text) to this archive.
The other tool is RegDiff.jar (use "java -jar RegDiff.jar dump00.txt dump01.txt) writes to the console the diff between dump00 and dump01; in .reg format suitable to be imported by many Registry tools. You need JRE or JDK from Sun to exec java code.
Keys deleted are represented as [-keyName], and keyvals as "KeyNameVal"=-. New creations and modified ones written normally, as stated in MS documentation.
I've been using this as I've flashed many times my Prophet, as a shortcut to install all my apps.
Great site!

Mac OS and HD2

Hi to everyone. I’m trying to upgrade my ROM but the file I’m downloading (Greek 1.48.482.4) is .exe and doesn’t work on my MacBook. (As most other .exe files that I've tried so far). Any suggestions? Thank you in advance!!
Forget it on a Mac. You have to install VMWare, Parallels or Bootcamp to install a Windows version on a Mac. Or use someone else's PC.
use emulation or boot camp
Hi there,
No exe file will ever launch on mac OS.
Many emulators allow mapping of USB ports, but i'd say you are likely to fail or get corrupted sooner or later (i.e brick your device because of some VM/ emulator failure).
The best way would be to use bootcamp and install XP on a small partition.
You may also try a live CD like BartXP (google is your friend)
Well, I may use a friend' s PC. Thank u for the immediate answers.
christav said:
Well, I may use a friend' s PC. Thank u for the immediate answers.
Click to expand...
Click to collapse
I like your wise alternative solution. Sometime things are not as complicated as they seem. Thank you for showing us the way.
I would reccomend against using emulation software for such an important task. For me I have a bootcamp partition of 7. I'm sure you can find a cheap copy of XP somewhere and install that (but i think 7 takes up less space!)
You will need to to the goldcard method I think and therefore install from your sd card.
You'll need a pc to extract the .nbh
If you have an Intel Mac, you might have luck with this.
I just checked, and the one ROM updater I tested (TUR_1.61.468.1) seemed to work fine running through Wine on my machine (iMac7,1 running Snow Leopard). I didn't flash over USB, but directly from MicroSD-card.
Here's what I did:
1) Download and Install Wine. I used this, which includes WineBottler.
2) After installing, run Wine.app.
3) You will get the opportunity to add a Prefix. This is the location on your drive that your virtual Windows system will be placed. Create it in any location you like, I create mine as 'WineDefault' in my user folder, so /Users/meptik/WineDefault/. This might take a minute.
4) Now find the ROM Updater you downloaded and right-click (or ctrl-click) on it, and Open With -> Wine.app.
5) When prompted, select 'Run directly in <prefix you just created>' and click Go. Installshield Wizard should run, click 'Next' and it should start extracting files.
6) Now, when the ROM Update Utility window appears, don't do anything.
7) Instead, head over to the Wine prefix you created earlier, and look in drive_c/windows/temp/. There should be some temporary folder here. Inside should be the files extracted by the ROM Updater, including RUU_signed.nbh.
This file, once renamed to LEOIMG.nbh, can be used to update your HD2 directly from your MicroSD-card. Follow this tutorial from step 6c.
so, in essence, using my Macbook and my HD2 means I'm a bit stuck for changing the ROM on the phone

Help with a batch file

I need some help with a batch file. I am going to run the batch file on a usb flash drive/thumb stick. What I need it to do is copy three files from the usb flash drive/thumb stick to a directory on a computer. The three files are drivers. A Netgear N150 WNA1100 drivers to be exact. I have been looking around different websites but they have been no help to me.
No help?
Sent from my rooted Pantech Burst running Gizmolord V4.0 RC7
Code:
@xcopy "%~dps0\driver_blah_blah" "dest_drive:\path\"
e.mote said:
Code:
@xcopy "%~dps0\driver_blah_blah" "dest_drive:\path\"
Click to expand...
Click to collapse
Actually, xcopy has been depreciated in favor of robocopy.
--------------
Usage :: ROBOCOPY source destination [file [file]...] [options]
source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir (drive:\path or \\server\share\path).
file :: File(s) to copy (names/wildcards: default is "*.*").
:
: Copy options :
:
/S :: copy Subdirectories, but not empty ones.
/E :: copy subdirectories, including Empty ones.
/LEV:n :: only copy the top n LEVels of the source directory tree.
/Z :: copy files in restartable mode.
/B :: copy files in Backup mode.
/ZB :: use restartable mode; if access denied use Backup mode.
You can get these by opening a command prompt and typing robocopy /?
Robocopy isn't present on all Win boxes. There are still a lot of XP boxes out there. Xcopy isn't as robust, but for copying a few driver files from USB, it doesn't need to be.
I assumed OP is informed enough to know basic copying syntax. His difficulty is with the USB drive letter, which is dynamically assigned by default. The %~dps0 is what he's looking for. Syntax to this is in an unlikely place, for /?.
Speaking of deprecating, *.* wildcard has been out of fashion since the DOS days.
e.mote said:
Robocopy isn't present on all Win boxes. There are still a lot of XP boxes out there. Xcopy isn't as robust, but for copying a few driver files from USB, it doesn't need to be.
I assumed OP is informed enough to know basic copying syntax. His difficulty is with the USB drive letter, which is dynamically assigned by default. The %~dps0 is what he's looking for. Syntax to this is in an unlikely place, for /?.
Speaking of deprecating, *.* wildcard has been out of fashion since the DOS days.
Click to expand...
Click to collapse
Oh, well, it is a Windows 8 Forum, so I figured he was asking for this OS. I haven't tried xcopy on my Windows 8 machine, but it still works on Windows 7.
Speaking of color: Personally, I like to change the screen color when performing long copy commands, so that I know how far along the CMD file has progressed.
The OP does not have to worry about the drive letter if he is running the cmd file off of the thumb drive (which is my assumption). all he needs is to provide the name as the source; it will assume the drive letter and current directory. If he is trying to use it from the computer, that could be a problem.
EDIT: Sorry about the color comments. I was picking up the text colors in the quote box! (but I still like to color my screens on long cmd files).
EDIT again: As far as the *.* goes, I was simply pasting the result of the robocopy help command. You'll have to write MS about that one!
thanks e.mote I needed to write the batch file because my dad works for my ISP and he has to install the wireless USB adapter manually due to microsoft saying that any program not on the marketplace is illegal to install or run. I will make his time and install easier.
Edit: The batch file is gonna be used on multiple machines. So drive letters are way out of the question.
Edit 2: It is only gonna be run on windows 8 machines.
nightfire37 said:
thanks e.mote I needed to write the batch file because my dad works for my ISP and he has to install the wireless USB adapter manually due to microsoft saying that any program not on the marketplace is illegal to install or run.
Click to expand...
Click to collapse
That is completely false. Windows 8 will allow installation of any software, not just store software. Only windows RT restricts software installs and your drivers on a USB will not function on windows RT due to it being an ARM device and the drivers being for x86. And why use a batch file to copy another file, isnt that what Control-C and Control-V are for
SixSixSevenSeven said:
That is completely false. Windows 8 will allow installation of any software, not just store software. Only windows RT restricts software installs and your drivers on a USB will not function on windows RT due to it being an ARM device and the drivers being for x86. And why use a batch file to copy another file, isnt that what Control-C and Control-V are for
Click to expand...
Click to collapse
My dad wanted to me to come up with a solution to make the job easier and so i did and the guys that supposed to be helping the guys in the field that do this kind of stuff arent helping at all and inside the corporation, there are people that can barely know how to open up emails, let alone run an app but they cannot install or look onto the Local Disk because they will get lost and not understand it. i fully understand the differences of RT and the x86 versions of Windows 8. The machines my dad works on are x86 based. I did mess around with it and i was not happy at all with the changes Microsoft has done to it. I will never understand Microsoft's move to make there OS a touch screen based computer when almost every single computer that OEMs sell do not have touch screens. I'm getting off topic but anyways thanks for telling me this guys.
Frankly, if you're just copying a couple of files whose names you know, and they aren't directories and don't need special attributes applied, you may as well just use the old "copy" command. As in,
copy thefile1.sys, thefile2.inf, thefile3.cab C:\thedestfolder\
You can make it a bit more specific if you want to handle things like the case where the file already exists, or the destination folder does not... but the basic form is very simple. For help, you can use
copy /?
but dont you still need to worry about the drive letters?
Sent from my Samsung Galaxy Player 5.0 USA running CM10 using xda app-developers app
copy "%~dp0CHANGEME1.ext" "%~dp0CHANGEME2.ext" "%~dp0CHANGEME3.ext" "%SYSTEMDRIVE%\path\to\folder\on\host\OS\drive\"
This only works from a batch file (It will produce erratic results if ran from a plain command prompt), and you can test what it will send as paramaters by putting an 'echo' before the 'copy'. It will use absolute paths to the files in the same dir as the batch script, in case the working directory is not as expected (such as if it is ran as admin).
Here is the output on my system:
C:\Users\Nathan\Desktop\test>test.bat
copy "C:\Users\Nathan\Desktop\test\CHANGEME1.ext" "C:\Users\Nathan\Desktop\test\CHANGEME2.ext" "C:\Users\Nathan\Desktop\test\CHANGEME3.ext" "C:\path\to\folder\on\host\OS\drive\"
nightfire37 said:
but dont you still need to worry about the drive letters?
Sent from my Samsung Galaxy Player 5.0 USA running CM10 using xda app-developers app
Click to expand...
Click to collapse
If you put the batch file in the same directory as the drivers, you can simply run it from there, providing only the file name as the first argument, and the target drive (should always be C:\Windows\System32 - or whatever).
copy AAAAAA.dll C:\Windows\System32
copy BBBBBB.dll C:\Windows\System32
copy CCCCCC.dll C:\Windows\System32
xcopy and robocopy are really meant for copying large numbers of files.
EDIT: The former post is correct, using %SYSTEMDRIVE%\Windows\System32 would always find the system drive, even if it were not the C: drive. But I suspect the vast majority of computers are using C: as the system drive.
stevedebi said:
If you put the batch file in the same directory as the drivers, you can simply run it from there, providing only the file name as the first argument, and the target drive (should always be C:\Windows\System32 - or whatever).
copy AAAAAA.dll C:\Windows\System32
copy BBBBBB.dll C:\Windows\System32
copy CCCCCC.dll C:\Windows\System32
xcopy and robocopy are really meant for copying large numbers of files.
EDIT: The former post is correct, using %SYSTEMDRIVE%\Windows\System32 would always find the system drive, even if it were not the C: drive. But I suspect the vast majority of computers are using C: as the system drive.
Click to expand...
Click to collapse
If you right-click on a .bat and run as admin it will change the current dir to System32, so your method won't work unless the user has UAC disabled/is an admin, or if they do some horrific permissions changes to System32 to allow it to run as a non-admin.
There are other instances where the logged dir isn't the same as the calling script, eg when you drag-drop files onto the script to be processed. Granted it's not the case here, but it's good practice to assume as little as possible for Win shell scripting (which survived mostly untouched from DOS). There are enough quirks in it to already drive you crazy.
Speaking of quirks, I prefer %~dps0 (or simply %~fs0) over %~dp0 because the console buffer can be exceeded in case of really long path names, which results in an error. The 's' switches to the old 8.3 short-name format and obviates this problem. It also avoids the problem of pathnames with UTF-8 characters, which some Win versions can't recognize (I'm not sure about Win7, but Win8 can handle UTF-8 in the console fine). File/pathname is the most common issue in Win shell scripting. Always use double-quotes to enclose them.
netham45 said:
If you right-click on a .bat and run as admin it will change the current dir to System32, so your method won't work unless the user has UAC disabled/is an admin, or if they do some horrific permissions changes to System32 to allow it to run as a non-admin.
Click to expand...
Click to collapse
Most of my batch files use full paths, so I would not know. I just opened a cmd window as administrator, and it does go to system32. I never noticed that before.
I think then the best way to run would be to do a search for cmd (from the start menu), run it as administrator, and then change to the drive containing the batch file. From there it would execute.
Or try the other method described above.
thanks guys for this information. its much appreciated.
Sent from my Samsung Galaxy Player 5.0 USA running CM10 using xda app-developers app

Categories

Resources