Showing posts with label how to build portable apps. Show all posts
Showing posts with label how to build portable apps. Show all posts

4/16/2015

SideBySide configuration ERROR : MS Visual C++

# Introduction:  Sometimes when you try to run your application on windows XP / VISTA (old systems) or Windows 7 (where Visual C++ shared libraries is not installed, )
your application won't run, instead it gives you an ERROR, like,
configuration error
SideBySide configuration error
Activation context generation failed




# This error is because of missing Visual C++ Shraed runtime libraries. So all you can do is install it.
But sometimes you do not have Admin privileges to install it,
Ok, this is where concept of local manifest comes in play, Now we will write a local manifest file for
required Visual C++ shared libraries.


# Situation First : Running Python Interpreter
Python Interpreter require Microsoft.VC90.CRT Shraed libraries, So we have to write Microsoft.VC90.CRT.manifest file,
this is basically a XML file and you can write this file using Notepad, Nodepad++ ( If you have installed. )



=> Open notepad and write this XML code and save it as Microsoft.VC90.CRT.manifest
into the same directory where you have your application, in this case python.exe
=> Now you should have these three DLLs, listed in manifest file,
msvcm90.dll , msvcp90.dll , msvcr90.dll
copy and paste these three DLLs into application folder, in this case %PYTHONHOME%

## Microsoft.VC90.CRT.manifest
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Copyright (c) Microsoft Corporation.  All rights reserved. -->
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
    <noInheritable/>
    <assemblyIdentity
        type="win32"
        name="Microsoft.VC90.CRT"
        version="9.0.21022.8"
        processorArchitecture="x86"
        publicKeyToken="1fc8b3b9a1e18e3b"
    />
<file name="msvcm90.dll"/>
<file name="msvcp90.dll"/>
<file name="msvcr90.dll"/>
</assembly>


# Situation Second : Running WinHTtrack 
winhttrack.exe require Microsoft.VC90.MFC shared libraries,



=> Open notepad and write this XML code into it, and save it as Microsoft.VC90.MFC.manifest file,
into the same directory, where you have winhttrack.exe executable file.
=> Now copy these DLLs into Application root directory, (as listed in manifest file)
mfc90.dll , mfc90u.dll, mfcm90.dll , mfcm90u.dll

## Microsoft.VC90.MFC.manifest
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Copyright (c) Microsoft Corporation.  All rights reserved. -->
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
    <noInheritable/>
    <assemblyIdentity
        type="win32"
        name="Microsoft.VC90.MFC"
        version="9.0.21022.8"
        processorArchitecture="x86"
        publicKeyToken="1fc8b3b9a1e18e3b"
    />
<file name="mfc90.dll"/>
<file name="mfc90u.dll"/>
<file name="mfcm90.dll"/>
<file name="mfcm90u.dll"/>
</assembly>


# List of Visual C++ Shraed libraries and their dependent DLL files.
# Active Template Library
Microsoft.VC90.ATL
atl90.dll

# C Runtime Library, release DLLs
Microsoft.VC90.CRT
msvcr90.dll
msvcp90.dll
msvcm90.dll

# C Runtime Library, debug DLLs
Microsoft.VC90.DebugCRT
msvcr90d.dll
msvcp90d.dll
msvcm90d.dll

# Microsoft Foundation Classes, release DLLs
Microsoft.VC90.MFC
mfc90.dll
mfcm90.dll
mfc90u.dll
mfcm90u.dll

# Microsoft Foundation Classes, debug DLLs
Microsoft.VC90.DebugMFC
mfc90d.dll
mfcm90d.dll
mfc90ud.dll
mfcm90ud.dll

# Microsoft Foundation Classes, localized resources
Microsoft.VC90.MFCLOC
mfc90chs.dll
mfc90deu.dll
mfc90esp.dll
mfc90ita.dll
mfc90kor.dll
mfc90cht.dll
mfc90enu.dll
mfc90fra.dll
mfc90jpn.dll

# OpenMP Library, release DLLs
Microsoft.VC90.OpenMP
vcomp.dll

# OpenMP Library, debug DLLs
Microsoft.VC90.DebugOpenMP
vcompd.dll


# Development model of Visual C++ :=>  Concepts of Isolated Applications and Side-by-side Assemblies
In Visual C++ 2005, the ATL, MFC, Standard C++, and CRT libraries support the new deployment model available on Windows XP,  Windows Server 2003, and Windows Vista. The DLLs corresponding to all Visual C++ libraries have been grouped into several shared side-by-side assemblies and are installed into the native assembly cache, also called the WinSxS folder, under the operating system root directory.

# If you want to know more, look for it,
https://msdn.microsoft.com/en-us/library/ms235624(v=vs.90).aspx


7/31/2013

cameyo, your portable application builder. FREE and fast, Tutorial

We need some sort of portable software when we are unable to install any software to PC, just like our college, cyberCafe, or any of your friends PC,  where we can not able to install any kind of software. Also you can save your mush time if you just copy and paste your cameyo package to USB Drive and run from there, directly just double click and run.


Cameyo is a lightweight and fast software, using this app we can make our own portable applications and try them on any PC with any windows operating system ( like - XP, vista, windwos7 and also windows8 ).

Once you create a portable cameyo application for your software you can copy it to your usb drive or hard drive and use them without installing them, cameyo applications are fast as compare to other portable application builders.
Ø  where can i download cameyo software;


Ø  What actually a cameyo package is ;
cameyo application package is a standalone exe file which contains all necessary files , application configuration, registry settings and much more
Ø  main advantage of cameyo is, we do not need to reinstall our software to pc, in case if you reinstall windows again. we can run these application anywhere in your pc, ofcourse you can run these applications from your usb drive and your system partiotion other than windows .

Ø   whatever you do with your cameyo app, will we saved in its pre-loading package package location ( by default this location will be; "%appdata%/VOS" and you can edit your cameyo application settings which tells about how your cameyo package will work, like;
~  loading into ram memory or onto hard drive
~ there are three types of workspace environments for a cameyo package,
à first one is data mode “ in which you can save your files to documents, desktop location of your host pc.
à In second method Isolated ,” cameyo package will not be able to modify your system files.
è Last one is FULL access,” cameyo package can modify your system files as well if needed.


Ø  How do i make my portable/virtual application using cameyo;
there are basically three  methods using which we can make our portable app.
1.       " Ghost capture: capture an installation in virtual mode/sandbox", means you don not need to install your software to your pc/laptop., this is the fastest methods to create cameyo  apps easily and fast. if you getting some error about when you install /“or when trying “ your software in this mode just try the second one method.






2. capture a software package after installing in your system ,Easy and fast way, if you want to capture your software is that just create a virtual machine of your operating system using virtualBOx or vmware player and then capture your software in it and then copy this cameyo package
to your real/host pc.





3. there is a web based cameyo application builder, using this you can make a cameyo package of any offline installer of your software.


4.
there is also a community where all world users shares ther own portable cameyo applications, you have to sign up for this service at cameyo home website, also sign-up is free and easy.

Ø  I recommend you to create your own application instead to downloading them because there will we some apps which will not run properly on your pc, may be that cameyo package will be captured using that operting sytem other than you.

Ø  How do i edit configuration settings for my cameyo portable application;

There are three methods we can select one about where you are interested to store the preloading package application files.
First one is default location “%appdata%/VOS” ,
Second one specially for those who want to create a package and want to run from either location but preloading files should be stored under the executable directory, also useful for if you want to make a full portable software in case if you are using this package on computers other than yours.

Third method if you wish to store application date under custom location of your PC.
For example; %temp% 









  • You can capture more than one software in only one cameyo package, and add a menu entry for each software within your cameyo package.
  • You can export  the files within your cameyo package and can add sole of your own or delete that one which are not required for proper function of software.
Registry settings one of the important feature of cameyo, here we can edit a registry key or export registry setting or delete a registry key . do magic if you know how to play with registry settings.
Cameyo also provides a integration feature which tells about how your application will works with windows explorer.

  • Registry is soul of many software of windows without complete and properly configured registry setting many software will no longer works for your PC, if you disturbed them. Or  edit them if you do not what you are doing.


Now save your cameyo portable application, can run on most of windows operating systems without any problem.
Enjoy….

Alternative of cameyo software;
http://portableapps.com (download and run on any PC)

maleBOX (Commercial )
http://portableappz.blogspot.in/