Showing posts with label Professional. Show all posts
Showing posts with label Professional. Show all posts

Wednesday, September 1, 2010

Portable Apps: OpenOffice as an Alternative to Microsoft Office

I was in the process of assembling a set of portable applications to run in Windows XP.  After some investigation and experimentation, I concluded that there was not presently a solid, affordable way of making a portable version of my copy of Microsoft Office 2003.  Since I did want office-type programs in my set of portable apps, I decided to look into alternatives to Office.

One alternative, of course, was to upgrade to a more recent version of Microsoft Office.  In the case of Office 2010, there were (as with Office 2003) various offers of free downloads of a portable version.  Some of these offers seemed to be related to an offer of a free trial that Microsoft had floated in 2009.  Others were apparently pirated versions, typically with little explanation of how the portability had been achieved.  I did not investigate the question of how well these copies would work.

Since acquiring Softricity, Microsoft itself had moved toward developing application virtualization for purposes of facilitating enterprise software installation.  Of course, that was a long way from setting up Office to run from a USB stick.  At this writing, Microsoft's concept of portability was oriented toward portable devices (e.g., phones, laptops).  Office 2010 did come with "portable device rights" in this sense.  There did seem to be one way to install Office 2010 on a USB drive with Microsoft's blessing, more or less:  obtain and install Office 2010 Starter Edition, and then install Starter Edition on a USB drive.  Starter Edition was adware; it replaced Microsoft Works; it consisted solely of limited versions of Word 2010 and Excel 2010; and it was officially available only a preloaded software on purchased computers.  There were ways to download it otherwise.

I had several reasons for not choosing the Microsoft option.  Those reasons included a need for some advanced features, a need for the ability to work with other kinds of files, especially via PowerPoint and Access, a desire to avoid the distraction of adware, and a preference for not being dependent upon Microsoft.  This was not to say that I would avoid using Office 2010 altogether.  I just wanted something that would work effectively on a USB drive.

Another alternative to Office 2010 was to move away from Microsoft altogether, to the extent possible.  There were several apparently significant alternatives to choose from.  The most popular still seemed to be OpenOffice.  The OpenOffice suite continued to have the advantage of being usable on multiple platforms -- so that, for instance, I could still get into a file, via Ubuntu Live CD (or dual boot, or virtual underlayer), even when Microsoft Windows or Office became completely nonfunctional.  OpenOffice also included programs that would work with those varieties of files just mentioned (i.e., Access databases, PowerPoint presentations).

One question, for me, was whether OpenOffice would display the relatively unrefined kind of interface and functionality that had recently prompted me, despite myself, to lean back toward using Windows rather than Ubuntu applications (even if I was doing so primarily in Windows running within a VMware virtual machine on Ubuntu).  If I had ever used OpenOffice in Windows, it had been a long time ago; in recent years I had only used it in Ubuntu, and very infrequently at that.  So now I took another look.  I did a brief trial run of OpenOffice Writer Portable for Windows, running from a hard drive, just to sample its look and feel.  Preliminarily, it looked and felt good -- noticeably better and more familiar than the Ubuntu version, though no doubt the two actually functioned pretty much the same.  On this basis, I decided to go ahead with some efforts toward using OOo (as they call it, short for OpenOffice.org) Writer more frequently.

Portability, another question, was a no-brainer.  The version that I had just sampled was part of the PortableApps.com standard suite.  The concept was that I would set up my full portable suite on the hard drive, so as to avoid having to install programs whenever I set up a new computer or virtual machine, and then I would copy that folder of portable apps to the USB flash drive when I needed to take those tools on the road -- with my laptop or to someone else's computer.  With this concept in mind, I returned to my effort to come up with a good set of portable applications for Windows XP.

Saturday, August 28, 2010

Making Microsoft Office 2003 Portable

I had discovered that many Windows XP applications came in portable form, or could be made portable, and I had decided that portability had some advantages for me.  In the process of transitioning toward greater use of portable apps, I came across the question of whether Microsoft Office 2003 could be made portable.  This post describes my investigation into that question.

Normally, I would just install Office from the CD, and by default it would do its installation thing on drive C.  Alternatively, I had found that I could download copies of Office 2003 that people had converted into portable format.  These presumably pirated versions seemed to carry the risks of being unstable or nonworking, and also of infecting my computer with viruses when I downloaded or ran them.

The more intriguing possibility was to use an application virtualization tool designed to create my own portable version of Microsoft Office (or of other installed software, for that matter).  Among the many virtualization tools listed in Wikipedia, I wanted WinXP-compatible freeware.  This amounted to a search for information on Cameyo, FilePacker, and JauntePE.  In a relatively brief inquiry, depending heavily on the slickness of the developer's webpage, I got the impression that Cameyo (although still in beta) was the best-developed of the three, so I started with that.

I found descriptions of Cameyo's virtualization process at DotTech and Addictive Tips; I also found at least some potential for support in Cameyo's own thinly developed forums.  The basic idea was that, when I ran Cameyo, it took a pre-installation snapshot of my entire system.  Then it wanted me to install the program that I wanted to package (i.e., Office 2003).  Then it would run a post-installation snapshot, and give me the package.

The DotTech article seemed to say that installing the whole Office 2003 suite at once would cause a problem:  all of the programs in it would run anytime I tried to start any one of them.  So that wasn't a great prospect.  The better idea seemed to be to package just one Office 2003 program at a time.  I decided to start with Microsoft Word 2003.  For that purpose, the first question was, what should be included in a complete installation of Word?  The first thing, of course, was Word itself, along with the relevant updates downloaded from Microsoft.  So that's where I started, with Cameyo running.  (I was doing these tests in clones of a clean new virtual machine (VM) running in VMware Workstation 7.1 on Ubuntu 10.04.)

When I installed Word, I chose the advanced/custom installation option, and indicated that I wanted to install everything under Microsoft Office Word (but nothing under any other program), along with the default Office Shared Features and Office Tools.  When the installation finished, I had the option of removing setup files from drive C.  I decided to keep them, even though space on a USB drive would be relatively limited, because I certainly wouldn't want to have to go hunting for a setup CD when I was off somewhere, relying upon my USB drive.  I was relieved that none of the updates required a reboot; then again, I noticed that Cameyo's dialog box said, "If installation requires reboot, simply reboot" -- so apparently it would just keep right on recording on reboot.

After that, the next step in the Word installation process, for me, was to install the converter pack from the Office 2003 Resource Kit.  I used the AutoCorrect.dot macro to restore my large collection of word corrections and abbreviations.  I also used the Office 2003 Save My Settings Wizard to restore various configuration adjustments that I had made and saved from a previous Office 2003 installation.  For some reason, it did not restore all of those adjustments.  For instance, in Word's Tools > Options > File Locations, I had to reset the preferred locations for files.  To automate this for future reference, I took Regshot pictures of drive C before and after making those changes, and saved the difference as .reg files for possible use in some future installation.

At that point, I clicked the "Install done" button on Cameyo.  It spent quite a while taking a post-installation snapshot, as I had heard it would -- a half-hour, I would say, though I didn't time it.  When Cameyo was done, it just sort of disappeared.  I wasn't sure where it had saved the finished product.  The only two options in the Start menu were Capture Software Installation and Package Editor.  I had already done the former.  When I tried the latter, it gave me an blank window with File as the only menu pick.  I tried File > Open.  It defaulted to its own program folder, and there was nothing there related to the Office 2003 portable executable file that I was hoping to find.  Nothing in My Documents, nothing on the Desktop.  When I restarted Cameyo, it showed nothing under "Recent Packages."   It didn't seem like others were having this problem, so I posted a question on it in the Cameyo forum.

While I was waiting for a reply, I did what I probably should have done in the first place:  I uninstalled Word 2003 and prepared to reinstall it, again with Cameyo watching, but this time I didn't plan to continue on with the time-consuming process of installing updates.  Instead, I planned to do a quick installation of Word 2003 by itself, just to try it out.  But now Cameyo wasn't wanting to cooperate.  It crashed three times in a row while trying to do its pre-installation scan.  That may have been related to a problem with the operating system.  I was doing this stuff in VMware virtual machines (VMs), and this particular one became unstable.

So I tried again in a new VM.  It was a clone of a newly created WinXP installation, with virtually no prior program installation or uninstallation, so I didn't expect any more operating system issues.  I installed Cameyo in this new VM, set it up to capture, and proceeded to install Word.  This time, it ended differently.  After its ending snapshot, it gave me a dialog labeled "Main Executable."  This dialog asked me to provide the name of the application, to say where I wanted to save it, and to identify its main executable, i.e., the program that I wanted to run "when the package is opened."  Under that last question, it gave me about ten choices.  First on the list, and the correct answer, was WINWORD.EXE.  Other possibilities included OIS.EXE (Microsoft Office Picture Manager) and MSPSCAN.EXE (Microsoft Office Document Scanning).  I wasn't sure what it took for an .exe to make it onto that list.  Maybe these were programs that had run during the setup process.  I noticed that PROFLWIZ.EXE (the Save My Settings Wizard) was also on the list.

After I filled in those blanks and selected WINWORD.EXE, I got an indication that Cameyo's Packager was building the package, and then it said, "Success.  Package successfully saved in" the directory that I had named.  I went to that directory and took a look.  There, I saw a file named MicrosoftOfficeProfe.WINWORD.virtual.exe.  Its size was 6,361KB (i.e., 6.2MB).  That seemed pretty slim.  I wondered whether it did somehow contain references to other Word installation files on that computer.  I also noticed that this completed job was not listed in Cameyo's list of Recent Packages.  I renamed the file to be Portable Microsoft Word 2003, and tried running it right where it was.  I got a dialog:

Fatal
Cannot find RESOURCE_COREZIP

So, OK.  Not a good sign.  I did a search for that file and concluded that it was telling the truth:  I couldn't find RESOURCE_COREZIP either.  I wondered if renaming had caused the problem, so I changed its name back to the longer original form and tried again.  But no, I still got the same Fatal message.  So was I perhaps supposed to include most if not all of those other programs (e.g., MSPSCAN.EXE) in the final package after all?

So far, I wasn't too impressed with Cameyo, and I was also starting to have some questions about how (or whether) this packaging concept would work, for a program that needed to be changed from time to time, as was the case with Word.  I mean, would I be able to adjust its settings, and would any changes that I made be preserved?  Suppose, for example, that I wanted to add another AutoCorrect item to my list.  Suppose I was doing a lot of work for the International Delegation of Information and Operations Training System, and I hated typing all those words:  I just wanted to designate a shortcut (IDIOTS) and let that expand into the full name.  I'd type IDIOTS, hit the spacebar, and, boom, AutoCorrect would do its magic and give me that whole long name instead.  Could I add that to the packaged Word, or not?

Ideally, I would have tested that in Word itself.  But since I wasn't getting too far on that front, I tried Cameyo again, this time using a simpler program as a proxy.  So I used Cameyo while installing IrfanView 4.0 and its plugins.  Cameyo's packager crashed while trying to do its initial snapshot, so I tried again.  When installation finished, I went into IrfanView's Options menu and took a look at some of the default settings.  Then I went to Cameyo's packager and clicked "Install done."  It took its post-installation snapshot and gave me the "Main Executable" dialog again.  This time, though, it didn't name any main executables at all, and it also wouldn't let me type in the path to where the newly installed IrfanView executable was.  So I named a folder where I wanted it to save the main executable and clicked OK, and again it reported Success.  But there wasn't anything to run in the target folder, so I think Failure would have been the more appropriate report.

So I was done with Cameyo.  I noticed that JauntePE had gotten a number of mentions on PortableApps.com, whereas FilePacker had not, and anyway I had started out with the impression that JauntePE was considered a leading if imperfect entrant in this field.  So now I tried JauntePE.  I downloaded both the alpha executable and an apparently accompanying set of runtimes and unpackaged them both on a clean new VM.  Then I ran JauntePE.exe.  It admitted it was an incomplete program.  I clicked on its "house" icon, which I took to be the home or starting point.  That seemed to be where I was already -- nothing happened -- so I tried the next icon, showing "tools."  Nothing happened.  Third icon:  the tooltip said this was the JPE Quickie option, which the home screen had said was where I should start.  I ran JPE Quickie.  In its first screen, it gave me the option of naming an installer or an application already installed, and also the option to "leave intact any Quickie portable data [or discovery data, whatever that was] from previous runs" -- suggesting that, with JauntePE, perhaps I could indeed start up from where I had left off, after making subsequent adjustments to my Word 2003 installation.  I took a look at Quickie's Settings tab, but wasn't really clear on what most of them were about, so I just left them as they were.

So I clicked "Run Portably" and then "Run Normally" to run Quickie with the IrfanView setup executable.  It did its thing and gave me an error message:  "Unhandled Error."  I clicked OK from that.  Then it showed me the IrfanView installation screen; but after a moment, that crashed.  This was unexpected:  IrfanView had always installed for me without any problems.  I canceled out of that and tried "Run Portably" again.  Now I got a message indicating that JauntePE could not access a certain discovery mode output file.  It said, "If you have corrected the problem, click OK, otherwise Cancel."  I hadn't corrected anything, so I clicked Cancel.  Despite the error, which was apparently not serious, JauntePE proceeded to try to install IrfanView again.  It gave me the same Unhandled Error message, and again the IrfanView installer crashed.

Well.  JauntePE was alpha software, after all.  If it was having this much trouble with IrfanView, I hated to think what it might be like to try to portabilize Office 2003 with it.  I skipped on to FilePacker.  Unlike JauntePE, FilePacker was not a portable app.  It installed to drive C.  I ran it.  It was simple.  It created a 7MB executable.  I ran that.  It opened up the IrfanView installation dialog.  So basically (as the writeups had already more or less explained) the concept of FilePacker was just that it would combine, into one package, all of the executables you designated; and when you ran that one package, it would run those executables, or at least one of them.  It wouldn't actually give you a ready-to-use portable application.

So far, JauntePE had come closest to offering (although not providing) what I wanted:  a portabilizer that would also seemingly allow me to include subsequent updates, changes in program settings, and other adjustments, without having to go back through the whole setup process from the beginning.  Ideally, it would also be slickly packaged, so that I wouldn't have to do a lot of research to figure out, by trial and error, how I should have answered this or that question during the setup process.

Apparently I was going to have to pay for a program that would do that.  Looking again at Wikipedia's article on portable application creators, I decided against the category of programs that would require something to be installed on the host machine, in favor of those that created true portable (i.e., standalone) apps.  This meant that I was opting against U3, PackageFactory, and MojoPac,.  For instance, the developer's webpage said, "MojoPac requires the host PC be logged in with administrative privileges or have MojoPac Usher installed."  I also wasn't looking for the creation of an entire virtual environment from my USB drive, which was what both MojoPac and Ceedo Personal offered.  A review by nc10 said that, unfortunately, in MojoPac, any software with a copy protection scheme tied to a particular computer (including specifically Microsoft Office) would fail to operate on other computers.  Also, I didn't want to be dependent on Microsoft, so that eliminated Microsoft Application Virtualization, and I didn't want to pay hundreds or thousands of dollars, which meant I wouldn't be using BoxedApp Packer, Spoon Studio, LANDesk Application Virtualization, InstallFree Bridge, or VMware Thinapp.

It seemed, at this point, that the market for heavy-duty portabilizers was still immature.  Even if I was willing to pay up to $100, I was going to have to wait, probably for a couple of years, to find a selection of high-quality programs that would crunch something like Word 2003 into a single package that I could just carry around and run on any Windows computer, and could also update without having to go back through the whole setup process.  I did decide to try Ceedo Personal, by the way.  The story of that investigation is in a separate post.  In a word, it only reinforced this sense of market immaturity.

To sum up, there seemed to be some ways in which Office 2003 could become portable.  That development might require nothing more than the emergence of a better version of, or competitor to, the programs cited above.  While I did not think that the market for such programs would mature within the next year, I could hope that at least one affordable, robust application of this nature would emerge within months.  At present, however, it appeared that I could not make a portable version of Microsoft Office 2003.

Wednesday, September 12, 2007

No Drives Are Attached, or Drives Are Powered Down

I was starting to build a second computer. I installed a Philips SPD2513BD DVD burner. I didn't notice that it was a SATA drive, and I was a little bummed about using up one of my two SATA connections, in this new computer, when I could have used one of the IDE/ATA connectors instead. But in the worst case I could swap it with the IDE burner in the other computer. I liked the specifications and the looks of this drive, and I had already paid shipping, so I decided to make a go of it. My plan for a quick and easy Windows XP Professional installation, on this new computer, was to use DriveImage 2002 to install a drive image PQI file containing a complete snapshot of an earlier WinXP installation. That way, I would not have to go through the whole rigmarole of installing Windows, sitting there hitting keys to get it to download updates, etc. I would just re-install this already complete previous installation, change a few hardware items, and be done with much of the installation chore. Unfortunately, it didn't work quite that way. When I tried to boot from the Drive Image CD, I got this error message:

No Drives Are Attached, or Drives Are Powered Down The Device Driver Is Not Installed
The message was obviously incorrect, insofar as it was coming from a CD that was loaded in the DVD drive. I had previously booted Bart PE and had seen, there, and also in an Ubuntu bootup, that the system was indeed recognizing both the DVD drive and the hard drive. I did a Google search for the error message, but came up with no answers. I was stumped. I searched for the error message in Google Groups as well. There, I got the idea to check the BIOS. No clues in the BIOS, but I then thought of trying to boot Drive Image from the floppy disk. (I had recently recopied Drive Image to fresh floppies.) But that gave me a Grub Error 22. Evidently this system was not willing to boot from the floppy, even though I did have it third in the BIOS bootup sequence. I tried moving it to first. That worked. The floppy booted. Apparently Grub had come preloaded ... or, as I thought about it, perhaps I had not completely reformatted the hard drive after installing Ubuntu on it. I postponed the Drive Image process to verify that, rebooting with PartitionMagic 8.0. Of course, it wasn't prepared to load that, either, not from the CD anyway, so I reverted to the original plan and proceeded to load Drive Image from the floppy, figuring I would fool with the partition issues later. But then -- I had forgotten -- Drive Image was able to identify and delete the partition, so PM wasn't needed. I was surprised and pleased that DI was able to read the PQI, given that it was saved on a DVD rather than a CD. I hadn't been sure that DVD technology was in the mainstream back in 2002. I still got Grub Error 22, so I researched it and got the advice to boot from the WinXP program CD, go into Recovery Console, and use FIXMBR and FIXBOOT. That solved the problem.