Quantcast
Channel: VBForums - Application Deployment
Viewing all 248 articles
Browse latest View live

Problem with post build event in Visual Studio 2010

$
0
0
I'm not sure if this is the best forum for this problem. I've been using this trick: http://blogs.msdn.com/b/astebner/arc...udio-2005.aspx for some of my installers to solve a problem I was having (it's been so long I can't even recall the exact problem). But we've updated our PCs at work so I now have a Windows 8.1 PC. I'm still using VS 2010 as before, but now when it tries to run the post build command for the installer I get this error:

'PostBuildEvent' failed with error code '1' 'Unspecified error'

If I remove the post build command it works. I'm thinking this might be an OS problem since it was working for my old Windows 7 PC. I'm not sure how to try fixing this though. Is there a debug option for post build events?

Deploying app with Inno Setup

$
0
0
I don't know where to open this thread so i opened it here.

According to this thread Inno setup install framework 4.5.

I implemented net framework 4.0 to a installation file. Script will check if user has installed framework 4.0 if not it will install it automatically.

Code:

function FrameworkIsNotInstalled: Boolean;
begin
  Result := not RegKeyExists(HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\.NETFramework\policy\v4.0');
end;

procedure InstallFramework;
var
  StatusText: string;
  ResultCode: Integer;
begin
  StatusText := WizardForm.StatusLabel.Caption;
  WizardForm.StatusLabel.Caption := 'Installing .NET framework...';
  WizardForm.ProgressGauge.Style := npbstMarquee;
  try
    if not Exec(ExpandConstant('{tmp}\dotNetFx40_Full_x86_x64.exe'), '/q /noreboot', '', SW_SHOW, ewWaitUntilTerminated, ResultCode) then
    begin
      // you can interact with the user that the installation failed
      MsgBox('.NET installation failed with code: ' + IntToStr(ResultCode) + '.',
        mbError, MB_OK);
    end;
  finally
    WizardForm.StatusLabel.Caption := StatusText;
    WizardForm.ProgressGauge.Style := npbstNormal;
  end;
end;

It works perfectly on all windows xp OS. But when you use it on Windows 7 it popup bunch of error's related to net framework. Reason ? I think the reason is that my setup install net framework 4.0 on win 7 instead of 4.5 ? What would be the solution for this . ?

To check if user use win 7
if user has installed net framework 4.5
Install

And to check if user use win xp
If user has installed net framework 4.0
Install

How can i check that

Web Deployment package doesn't copy all DLLs

$
0
0
I'm creating a web deployment package .zip file for an ASP.Net application, but it doesn't seem to copy all the dll files into the package.zip bin folder.

I'm using the System.Data.SQLite nuget package which includes a .targets file to copy two arch-dependent dll files (x86 and x64) into the bin folder at bin/x86/SQLite.Interop.dll and bin/x64/SQLite.Interop.dll.

When I create the package.zip deployment package file, it copies every dll in bin except for the ones under x86 and x64 folders.

How can I get the deployment package to include the dlls in the bin/x86 and bin/x64 folders?

Set default application folder for plug in msi based on existing application path

$
0
0
Hi All

I've got an application that uses plug-ins to represent different flavours of sql (e.g. MySQL, PostGres, SQLServer etc.). The intention is that further flavours of SQL will be supported by developing further plug-ins. It uses MEF to discover any dlls in a given directory (called SQLFlavours) which expose a given interface. The SQLFlavours directory is a subdirectory of the main apps application directory and is therefore a relative path.

I've created a deployment project for the main application and there's a default location but the user can change it if they wish. I'm now trying to create a deployment project for one of the plug-ins but I'm stuck on how to set the default location for it. Ideally I'd like the installer to somehow "search" to target PC to find the appllication folder of the main app and then append /SQLFlavours to create the apropriate default location for the plug in. Is there any way to do that?

Suggestions?

Cheers
FD

Deploying an application to a tablet.

$
0
0
I'm new to programming so please bear with me. I'm using VB 2012 on my laptop (running Windows 8.1). I wrote a simple Hello Program to test it on my tablet.
My goal is to write a golf program for our golf club. The tablet is an HP Stream 8 running Windows 8.1. I used the VB "publish tool", it created two icons on my laptop.
One is a Setup.exe file and the other looks like a application icon. They both work on my laptop. I tried to use email to get it to my tablet. After unzipping it, I tried to
install from the "setup" icon as well as the app icon. Both caused an error window, that says "Cannot download the application. The application is missing required files.
Contact application vendor". My question is: 1. What did I do wrong? 2. Does my tablet need .NET Framework on it? 3. Can I transfer the app to my tablet by USB cable?
4. Can anyone help?
Thank You.

Adding details to Windows application? (VS)

$
0
0
I've been working on this big project for a long time. It took a long time but now I'm done. I'm about to publicly share my Windows application and I notice one thing. If you click the properties>details it says "Copyright Toshiba...". Can I change that? I'm trying to change the description and copyright etc.

I'm sorry if I'm on the wrong forums. I'm using Visual Studios 2013.

Thanks!

Creating an .MSI file with Visual Basic with InstallShield Limited Edition

$
0
0
I have a VB.Net 2013 Ultimate solution with a project in it for Setup & Deploy, using InstallShield.

How do I set in InstallShield to build an .MSI file, not just a setup.exe file?

I am using the following:
InstallShield Limited Edition 6.1 (came with Visual Studio 2013 Ultimate)
Windows 7, 32 bit

package and deployment problem

$
0
0
I package my application using the vb package and deployment wizard. when I installed the program it says,
"An error occurred when registering mscomctl.ocx" and "An error occurred when registering mscomct2.ocx" and "An error occurred when registering tablctl32.ocx" and "An error occurred when registering msstdfmt.dll"

dllregisterserver in mscomctl.ocx failed. return code was: 0x8002801c

What is the problem and how can I resolve this?

InstallShield DLL Registration Error

$
0
0
I have packaged a project using InstallShield Express. On installing, it is suddenly throwing an error 1904 (DLL failed to register) with 2 DLL's that are not referenced in my project or required by my application. They appear to be COM versions of .NET DLL's that are referenced in the project. I have checked previous installations of the applications and the COM DLL's are not in the application folder at all but are now appearing after running new install packages. It doesn't seem to have any effect on the functioning of the application but I'd like to get to the bottom of why this is happening.

Visual Studio Installation URL with password

$
0
0
Hello,

I am able to publish my program to an FTP site and it creates a publish.htm page on the website. I can navigate to the publish.htm page and click the Install button and download the Setup.exe just fine.

However the publish.htm page is a password protected webpage on the website and it appears that the Setup.exe file cannot access the password protected folders during installation (At least, I think that is what is happening. Is there a setting in the Publish setting to include a username/password for the Installation URL?

This is my first website deployment and I'm struggling.

Silent installation of prerequisites for own software.

$
0
0
Hi Again

I made a program and now I compiled it for installation but all the prerequisites pop up with questions when the user installs the software. How can I make this silent??

Thanks in advance.

Best regards
Lovschal

Inno Setup issue: windows security shield does not appear on setup icon

$
0
0
I created setup using inno setup as well as using QSetup (and other install builder applications).

All setups were created using Admin privileges but the setups that were created using inno setup do not have a windows security shield setup icon. However this security shield mark appeared automatically on icons of all other setups.

Due to this issue, installer that was created using inno setup will not install on a number of Windows vista Machines when downloaded from website.

In Windows Vista machines, when I double click on such installer, nothing happens.

I used:
PrivilegesRequired=admin

Please help!


Name:  inno setup issue - windows security shield does not appear on setup icon.png
Views: 185
Size:  19.0 KB
Attached Images
 

Need help with multiple user inputs and only one output (A Number Program)

$
0
0
I am creating a program for a new dart league that my cousin and I started here in town. I would like to be able to automate and save handicap scores. My question is what would be the best way to write this code for the initial user input. Then what database should I create to store the user input and recall it when necessary (pictures below).

Name:  Page 1.jpg
Views: 42
Size:  14.1 KB

Name:  Page 2.jpg
Views: 36
Size:  12.6 KB
Attached Images
  

Is there any way to control with references on any devices without missing error

$
0
0
Hi guys, i'm back to help me to solve this small problem (if could)

my problem not in coding
the problem when i try to run my (*.exe) file on other device, there's error shows like (*.dll) not found...

So, Is there any way to put the references file in "project.exe" without need to put the references on the new devices at every time ?

and thanks...

[RESOLVED] Is there any way to control with references on any devices without missing error

$
0
0
Hi guys, i'm back to help me to solve this small problem (if could)

my problem not in coding
the problem when i try to run my (*.exe) file on other device, there's error shows like (*.dll) not found...

So, Is there any way to put the references file in "project.exe" without need to put the references on the new devices at every time ?

and thanks...

Preventing ClickOnce from Publishing a Debug Configuration

$
0
0
Hi, the title says it all. How can I prevent publish my programs when are in Debug. I have look over the net and found this:

HTML Code:

<!-- The following makes sure we don't try to publish a configuration that defines the DEBUG constant -->
<Target Name="BeforePublish">
  <Error Condition="'$(DefineDebug)'=='true'"
        Text="You attempted to publish a configuration that defines the DEBUG constant!" />

</Target>

This is supposed to be placed at the bottom of the project file right before the </Project> tag.

But I could not make it work. Does someone know how to make it work or have a better idea?

Thanks in advance!
EM

Visual Basic 6 Pro and Excel

$
0
0
Hello All,

I write code for myself, off and on ,in Visual Basic 6 pro I wrote a program that uses VB as a front end to an access database. my program also usees VB as a front end to excel, where I can write to excel. It all works fine on my pc as an .exe and works fine in the vb enviorment.

My question is if I make a standalone setup.exe for my program and install it on another pc my access data base will work but not excel.

Does the pc, I am installing my .exe to, have to have Microsoft office installed on it for excel to work? Why does the Access database part work but not the excel part? If yes Micosoft office has to be installed, what version of excel or Office has to be installed? Does version matter?

What do I have to add to my setup.exe to make excell work?

Thanks

How to ensure successful instantiation of some common classes from system dlls.

$
0
0
I have a vb6 app that references scrrun.dll, winhttp.dll, and some ActiveX dlls made by myself. Everything is fine when I test the app on my own desktop. But when I send this app to other people, and when they run, sometimes errors will occur - ActiveX Object cannot be created.

I didn't just send them the files but I have a setup program, where all files are packaged together in a setup.exe, and there is script to specifically register *dlls made by myself*. I assume I didn't have to package scrrun.dll and winhttp.dll as well and register them as I did with *my dlls* since they should *come along with the system*?

Registering Dlls will always cause a warning, or even worse, a automatic *kill*, from common anti-virus softwares here. And I really wish I had less dlls to ship with my app.

what to do?

Project Release & File Locations

$
0
0
Up til now I haven't really 'released' a project, as a typical install base for my customers has only involved a handful of computers.

That's about to change as I am looking at having to install software on over 200 computers, sort of scary.

On an XP OS the system directory is named WINXP. Under that directory there is a System and System32 directory where I have found both DLL and OCX support files.

For a VB6 program should the System or System32 directory be used?

Thanks.

Using Visual Basic 2010 Express, how do I create a self-extracting exceutable?

$
0
0
I've written a fantastic VB 2010 Express program for my company.

How do I create a self-extracting/self-installing executable of this program so other employees in the company can use it?

Thanks
Viewing all 248 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>