How to change default install dir in smart device cab project? - compact-framework

I have created smart device CAB project and its installed successfully in
\Program Files
by default BUT I want to make default install directory
\Application
folder instead of
\Program Files in Windows CE device 6.0
(MC3190 Motorola device).
Do you any idea to set default path or change "%InstallDir% macro value? Please provide help if any which very needful to me.

Set the [DefaultDestDir] in the \[DestinationDirs\] section of your INF.

Related

ClickOnce default installation path

I inherited a Windows Forms Application (.NET Framework 4) that uses ClickOnce for installation. Everything is working perfectly except I cannot seem to set the default installation path. Currently it gets installed to:
%appdata%\Local\Apps\2.0\xxx
where xxx is some randomly created path. This is causing problems with out virus scanner which is deactivating the program randomly. We cannot exclude the 2.0 directory from scanning as other programs that are not under our control also install to this folder.
I found this online:
https://social.msdn.microsoft.com/Forums/en-US/c6e3d328-1deb-49c9-99cf-98fe3830702a/where-does-clickonce-put-files?forum=winformssetup
where it states that I can set:
System.Deployment.Application.ApplicationDeployment.CurrentDeployment.DataDirectory
to set the data directory -> which might set the program directory as well?
I just cannot seem to find where I can set this path - Any ideas? I have never used ClickOnce before (and am new to Visual Studio) so please give me clear instructions.
Thanking you in advance
see comment:
The data directory is where data files, e.g. MDF and MDB files, get stored. You can't set the install location of a ClickOnce app. They get installed to the ClickOnce cache, which is what makes them ClickOnce apps. – jmcilhinney

How to build WinPcap from source using VS2013

I downloaded the WinPcap sources 4.1.3 as well as the corresponding AirPcap developer kit. I followed the build instructions described from the WinPcap website 1:
I loaded the project contained in the directory PacketNTx\dll\project with VS2013 (running on Windows 7 Professional x64). When I try to build the default project configuration (Debug, Win32) I get the error that the include file "netmon.h" cannot be opened. I also searched the web and found that this file is part of the wiretap library included in the Wireshark source code...
Can anyone suggest how to build the default configuration of the WinPcap packet.dll and wpcap.dll?
Thanks in advance!
best regards!

exe Appcrash on giving a specific folder path and specific exe name

I am working in a Powerbuilder application.
I migrated the application from 11.0 to 12.6 and deployed the application. I also generated dlls for Powerbuilder 12.6 version from install run time packager msi file. When I place the exe(say exe name as "vm.exe") and dlls in a folder path(say C:\abcd\vm and run the application,the app crashes. But if I copy the same exe and paste in same folder by changing the exe name as vmcopy.exe, it works. Only with specific exe name, it crashes. Also if I place the same dlls and exe in some other folder path(say C:\abcd\vmtest) name it works fine with exe name as "vm.exe". So only for a specific folder path and specific exe name the app crashes.I want the application to work with the specific exe name and specific folder location. Please help me on solving this issue.Thanks in advance.

Copy to AppX output directory with Visual Studio 2013 (WinRT app)?

I have a WinRT app built with VS2013 using C#. It uses SQLite so it needs the sqlite3.dll included in the project to be in the output directory. I included that DLL in my project and set it to always copy to the output directory. The problem is VS2013 copies it to the Debug directory, but not the AppX directory underneath Debug, which appears to be the WinRT output directory. Because of the the app fails because it can't find sqlite3.dll, which is up in the parent Debug directory instead of the AppX directory.
For now I'm just hand-copying the DLL into the AppX directory. What's the best way to fix this problem so that the DLL is copied to the correct directory?
In your project's Properties window choose Build Events tab. On Post-build window include similar string (please, mind to change the path to sqlite3.dll):
xcopy /Y $(ProjectDir)3DParties\sqlite3\$(PlatformName)\sqlite3.dll $(TargetDir)AppX\
Or even better option. This page https://www.sqlite.org/download.html contains section named "Precompiled Binaries for Windows Runtime" where you can download VSIX package. When you install this package into your system, you can simply reference sqlite3.dll for all target platforms (ARM, x86, x64) including all necessities automatically like this: Add Reference -> Windows 8.1 -> Extensions -> SQLite for Windows Runtime (Windows 8.1)
I can't be sure this is the "right" solution, but I set the file's property to Content/Copy-if-newer.
THEN what I've found is that if the AppX directory is already there, VS doesn't update it, just as you describe above, BUT if you delete the Appx directory then VS will create it from scratch and add the necessary files.
Not as good as having everything automated, but beats hand-copying.

.cab creator for WinCE CF 2.0

So I created a cab file in Visual Studio and it all was fine and dandy. i am using HP thin client with WinCE 4.0
One thing though, there is a folder called Program Files on My Device and there is a folder called Program Files on Hard Disk.
Now, My Device memory resets itself each time the machine is rebooted.
Unfortunately, VS 2008 won't let me change the path for where the cab installs the program.
Any ideas on how to change the path?
I have figured it out: any time you wish to install an application in a different path, use Custom folder, not Programs or Program Files.
Looks like InstallDir can not be modified w/o hacks. I used Custom folder while in the Cab project and specified the path I wish to install this app; it worked.