SAP B1 Studio Addon installation and Registration - visual-studio

I have created SAP add-on Project in B1 Studio. I was trying to create the installation file for this. But I am facing many difficulties while doing it as I have not done this before and I am unable to find proper documentation for so.
I followed following steps to create one.
Created add-on using add-on installer.
In add on registration wizard I gave address of the newly created .exe file.
I created one more folder and pasted all these file in that along with my project's .exe file and interlop dll.
In sap I registered the add-on and tried to install it.
But it is giving me no executable file found error.

If you are using SAP 9.0 or above, you can create an extension package. Go to the SAP installation directory and find the ExtensionPackage.exe
Path can be something like this
C:\Program Files (x86)\SAP\SAP Business One SDK\Tools\ExtensionPackage
Run this application and enter all mandatory fileds in Basic
information
select the 32 bit version / 64 bit version of your application
select additional files if needed.
mark to register 32/64 bit dlls if needed
click package button to save it.
Now you can go to your SAP Business one and open Administration > Add-ons > Add-On administration
click the Manage Extensions for Lightweight Deployment [this should open the control center in a web browser]
login using your B1site user ID n pass which will take you to extension manager.
Use import to import the package you created
Use Comany Assignment to assign to the correct SAP comapany.
Login to the SAP company to install the extension.

Related

How to change install location of msix bundle?

I have a WPF app that I am planning on deploying with the Windows Application Packaging Project in Visual Studio that makes the MSIX bundle for installations and future updates. The installer automatically installs the app in C:\Program Files\WindowsApps. This is fine until the program needs to cache some data or it needs to modify the appsettings file since the app does not have permission to get to these resources.
Is there a setting I can change in the packaging properties/manifest so it can install somewhere else so I can avoid these problems?
Indeed, only the Windows can write in %ProgramFiles%\WindowsApps when installing the msix package (by design). If your app is writing log files or other data inside the installation folder it will crash.
You need to either update your code to write to %AppData% or, if you don’t have access to the code, use the Package Support Framework to fix it. You can read more about here:
Package Support Framework (aka PSF)
The PSF brings support for API redirection and hooking. Thus, you can fix an app that failed to write a file in the installation folder (this is no longer allowed) and redirects it to a recommended location, or maybe simply update the app’s working directory.
As mentioned above, you cannot write in the install location of an MSIX package - this is by design.
For apps that are no longer under active developer indeed using the Packafe Support Framework is the only way to fix them. However, from what I see you are preparing to launch the app, so you have access to its code.
In this scenario, it is recommended you save all your app settings in the AppData\Roaming folder. For apps deployed as MSIX Windows will automatically redirect it under the Packages folder, but that is handled automatically by the OS, so you don't need to worry about it. More details below.
How to save data under AppData\Roaming instead of AppData\Local\Packages

"Cannot create a file when that file already exists." error

I am using Advanced Installer Enterprise and my requirement is to build an installer that downloads/installs an .exe setup file from remote location.
I followed these steps:
Create a project using Enterprise template.
Create a Featured-Based package using New URL Prerequisite (with correct Display Name, URL, and Silent install parameter /SILENT).
But whenever I run my new installer, I get the follow error (see image below) when it finish downloading my .exe setup file from remote location.
Is this an Advanced Installer error or is this an error from my OS?
I am using Windows 7 with Advanced Installer 11.8.
This is not an error from Advanced Installer, it is a generic error from the OS. Not sure why you are receiving it, if you search Google you'll find all kind of cases.
To help you more you can post a verbose log (link it from pastebin) or send it by email at support at advancedinstaller dot com if it contains confidential info.
If you'll send it by email you might as well include the project file from Advanced Installer, to compare it against the log.

How do I Include a file in a release package that is not part of the project

I need to create a release / install package. There is a drop down box in VS that lets me create a release version for the project. So I hit the publish button and choose the CD option. Sure enough it publishes the a setup I need. I installed the application everything goes fine though I have no idea where on the target machine where the application ended up??? Trouble is my application has signed XML file that stores the public keys my application uses to enable features depending on what a customer is licensed to do. I would like the key file to be part of the package that is installed so I don't have to send it seperately. I have to send the license file but I was hoping to avoid confusion by only requiring the user to only have copy the license file to the local directory. Which brings up another question were is application installed I did a search and found nothing with my application name???? But thereis an icon onthe star menu and the applicaton seems to run just file
You probably deployed your application as a "ClickOnce" Application. It installs the program to an obfuscated folder in your users folder. On Windows 7 it winds up in something like "c:\users\username\AppData\Local\Apps\2.0\somefoldername\somefoldername". If you need more control of the installation, the free InstallSheild LE that comes free with VS2010 is not a bad choice. It will let you add additional files as well.

Windows Service Setup Project

I’m trying to create a set-up project for a windows service. I’ve followed this tutorial and many others like it but, after installing my service, I still can’t see the service. I’ve added the primary output of the service to the application directory and created a custom action to include this output on Install, Commit, Rollback and Uninstall.
It claims that it installs correctly.
Should this work? Is there anything else that I can try to get this to install?
Did you create an installer for your service? It is separate from a Setup Project.
See: http://msdn.microsoft.com/en-us/library/system.serviceprocess.serviceinstaller.aspx
You can create an Installer by right-clicking on your service's Design window and selecting Add Installer.
In my case, adding the installer was a first step as described by dhirschl's answer. I then needed to add custom actions to the setup project.
Right click the setup project/view/custom actions
then add the primary output to every folder there.
Source

How do I add CRRedist2008_x86.msi to Visual Studio Deployment Project?

I need to add CRRedist2008_x86.msi to my deployment project as it is a requirement for my app. However, I want it to run automatically. I don't want it to be just added as a file and then the user has to click on it for it to run after my app installs. Can someone guide my on how to do this? It seems like it should be very easy but for some reason I am missing something.
What you need to do is set it up as a "merge module" in your deployment project. Instead of the .msi, find the.msm file that should be available on the CR website. Then in your deployement project, right click the Project and select Add->Merge Module. Browse for the file and you are set.
When the installer runs, it will automatically unpack the crystal reports related items and install them for you. You may also need a key file, depending on the licensing of the application involved.

Resources