Click here to Skip to main content
15,889,808 members

Vb.net MSI installer not working on multiple pcs

Member 10754595 asked:

Open original thread
I have created one Visual studio Winform and in the resource, I added IDAutomation font.
on my other PCs the font is not installed but I have done embed code in my program where I have given the font name. after successfully run the project on my machine I tried on others but that font is not supporting and giving error Path and file not found. how can I avoid the path to get this program exe running on all the machines also how can I avoiding installing the font on all the PCs. Below is my code.

Dim privateFonts As New System.Drawing.Text.PrivateFontCollection()
Dim pfc As New PrivateFontCollection()
My.Computer.FileSystem.WriteAllBytes(Application.StartupPath + "\IDAutomationHbC128M.otf", My.Resources.IDAutomationHbC128M, True)
pfc.AddFontFile(Application.StartupPath + "\IDAutomationHbC128M.otf")

The other issue is whenever I running this exe all the time it asks to click on run.
how can I avoid this problem also?

What I have tried:

Whatever was possible I tried.
Tags: Visual Basic

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900