Use A Windows Installer To Set Group Policy

Feb 18, 2009

how to build something like the following:I have an application that will reside on Kiosk style PCs that are out there in public settings. While the application is running on the Kiosk I'll need to restrict the access to certain PC features (reboot, command prompt, download files, etc.) so they don't mess with the PC. I need to build a Windows Installer that deploys the application and does all the set up needed to lock down the PC. The installer needs to do all the work; there can't be any manual steps besides running the installer. The installer will install the application, this part is standard. In addition it will create a local user and use Local Group Policy Objects to restrict the user's access to the machine. Then the machine administrator will log in as that local user and run the Kiosk application under this account. The hope is that the account is locked down and people playing with the application won't be able to stop the application or do anything malicious to the PC.I have been looking for a way to create GPOs in C# code. This way I can implement the GPOs as a CustomAction in my installer. So far I am not finding the right API for GPO management so I'm starting to wonder if I'm even on the right track.If you know of a nice solution for how to accomplish the Kiosk lockdown via a Windows Installer or you know something about managing Group Policy in a C# application

View 7 Replies


ADVERTISEMENT

Create Group Policy And Link To OU

Aug 3, 2009

I'm not shure that this is the right forum. If there are other more sutible forum please post a referance to it.My task is to generate dynamicaly 130 Group policies and link then to more then 260 OU's I have created.How do I create an empty GPO and link it to it's designated OU?

View 9 Replies

Programmatically Create A Group Policy In AD?

Apr 1, 2011

There are a few forum topics that start to discuss this but no concrete how-to's or step by step's. Is it even natively possible?

I need to create a software installation group policy using VB 2010 (or C# for that matter).

View 7 Replies

Get And Set Value Of Local Group Policy Editor Using Vb Scripts

Nov 19, 2009

I want to be able to get and set values of Local Policy Editor using vb scripts (or for that matter any other command line thing). The problem is that for my requirement I cannot rely on the machine in question having anything like powershell. I want to be able to run a script/command and get/set the values of things inside Local Group Policy Editor.

eg. I want to be able to set things like running gpedit.msc and set the value for "\Computer ConfigurationAdministrative TemplatesNetworkOffline FilesDefault Cache Size", and I want to do this without manual intervention.

View 4 Replies

Find Date/time Of Last Group Policy Refresh?

Nov 28, 2011

how I could retrieve the date/time of the last Group Policy update. I have a crude routine that will search the Event Log for Event 1704, but this runs slower than I'd like. I was hoping there might be a way to get this info via Registry, WMI query, etc. that would work faster in my VB2010 program.

View 4 Replies

Local Group Policy Editor - Force Shutdown From Remote System

Aug 3, 2010

The following steps give a Guest shutdown policy.

1- Click run, and type the gpedit.msc, to start "Local Group Policy Editor".
2 -Expand "Computer Configuration" -> "Windows Settings" -> "Security Settings" -> "Local Policies" -> Then click "User Rights Assignment".
3- In the Policy window, Select "Force shutdown from a remote system", double click it, it will pop a properties window.
4- Click "Add user or group button", add a user and name it Guest.

I need to know if it's possible to manipulate and add the user or group programmatically. I'm using Visual Basic 2008.

View 1 Replies

Creating A Windows Installer CD - Initiate The Windows Installer And Have Failed?

May 29, 2011

I have written a program in Visual Basic 10 and all is well. I have published it and have been burning the result to a cd and installed it on various computers, however it is the click once app, which has been fine till now. What I need to do now is to have the program install the .exe file and associated files (non click once app) to a specific drive on a computer or network computer. I have searched the net for instructions on how to initiate the windows installer and have failed. is there a program that you can select the source files then point to the installation folder tell it to go and an installation package gets made that I can burn to disk.

View 3 Replies

Make The Progress Bar In Windows Installer Look Different?

Apr 2, 2009

Is there a way to make the progress bar in Windows Installer look different?Could you make it look like a progress bar with the green boxes?

View 7 Replies

Publishing ClickOnce Or Windows Installer?

Aug 28, 2010

While publishing, how can I select ClickOnce or Windows Installer. Where can the choice be made?

View 2 Replies

Create A Windows Installer Project With The Aid Of A Wizard?

Jun 16, 2009

i want to create an installer of my program.but i want it to be with the aid of a wizardcould somebody tell me how to create it. i dun know how to create an installer.

View 2 Replies

IDE :: File Versions Work With Windows Installer?

Mar 25, 2012

I've read about revising the File Version (and Assembly Version) to ensure that an updated file does replace an older/previous file when a WI update installation is carried out, but I don't understand the four-part construction of the File Version ... and my re-versioned files sometimes refuse to transfer to the target computer.

For example, a .exe I have recently updated had it's File Version set to 1.0.0.0 (it is resident now in my Program Files (x86)/MyApplication folder) and File Date 23/03/2012, but even now with the File Version set to 2.0.0.10 and a File Date of 24/03/2012 when I use WI to install the new program over the original the 1.0.0.0 file remains in place and the new 2.0.0.10 file does not get installed instead.

[Code]...

View 2 Replies

VS 2008 Windows Installer Project Version Req?

Apr 5, 2009

I've decided to go with a Windows Installer (Setup Project) in VS Prof, rather than ClickOnce,I've added this project to my main project, and have right clicked and selected 'View -> Launch Conditions', it requires the .netframework 3.5.21022...

But I've created the installer project for .NET 2.0 framework, is this going to stop someone from installing the project without .NET framework 3/3.5?EDIT: I've found under the properties of that installer project, that .NET framework 3.5 and Windows Installer 3.1 was selected as a prerequisite, unchecked those, and checked .NET Framework 2.0, however the version under the launch condition .NET Framework is still 3.5, it should be 2.0

View 1 Replies

Windows Installer Put Files In Wrong Folder

Mar 31, 2010

I am working the first time now with windows installer. I made an application consisting multiple programs and one of them needs a shortcut to the user startup folder. Therefore I selected in the Installers file editor the special folder 'Users startup folder' and put there the shortcut to the program.

But when I install the programs the shortcut is placed in the common startup folder and not in the users startup folder

View 1 Replies

Building A Custom Installer From A Windows Forms Project?

Aug 11, 2010

What actually is required to consider something installed on a machine. What happens in the background? I know VB offers an installer but Im trying to build my own from scratch. What do I need to do to accomplish this?

View 13 Replies

IDE :: How To Auto-mate Windows Installer Setup In Application

Dec 30, 2011

I am seeking advice or clarification of feasibility.Ihave a VB.NET (2008) application that, as an administrative tool,generates a user id, password and business role, and creates a file on disk with the aforementioned as content. This file needs to be deployed to users via a setup program that will put the file in a fixed path I specify. I was wondering if it is possible (and if so how complex it might b to mimic the functionality of the IDEs setup and deployment wizard within the application (that is to say buildthe msi file and setup.exesupplying the parameter of installation path).

View 5 Replies

Put Shortcut On Programs Menu On Windows Mobile In Installer Cab?

Jul 27, 2009

Where do I put the shortcut icon for my mobile application in the Installer project for a Windows Mobile project so that when the cab is installed the icon will show on the Programs Menu?

View 1 Replies

Updating A Software Developed In .NET 2005 - Windows Installer

May 17, 2010

I'd like to know which would be the best way to deploy updates of a software developed in vb.NET, using Windows Installer. What do i have to change? Upgrade code? or Product code?

[Code]...

View 2 Replies

VS 2008 Performing A Minor Update With Windows Installer 3.5

Mar 27, 2009

I am using the windows installer which comes with VS 2008 to deploy my software. My initial deployment went well and I have several happy customers now. Unfortunately, one of my users found a bug. I have been able to locate and repair the issue- a simple math error in one of my forms. Now I need to deploy the repair to my existing customers without causing them too much headache in the update or, worse yet, inadvertantly deleting their stored database files.I know I can have them back up their existing db file, reinstall thenew app, and replace the new db files with their backup versions- but what a pain in the neck that will be, and it really won't look too professional, either.Does anyone know how to produce a patch to replace only the form that was repaired? Or, can I somehow exclude installing the new database files in the patch? I know the solution revolves around the Upgrade Code and Product Code, but I'm not putting the information together in my head very well.

View 6 Replies

Windows Installer Monitor - Include A Tool With Installation

Oct 6, 2009

I created a windows installer installation for my vb.net application. I want to include a tool with my installation that will run before the install begins and monitor the installation and send the log and errors to me (by email for example)

View 1 Replies

C# - Windows Service Installer For Different User Account (other Than Local System)?

May 1, 2012

Set objService = objWMIService.Get("Win32_BaseService")

objService.Create("usb2", "usb test", "c:usb2.exe",
OWN_PROCESS, NORMAL_ERROR_CONTROL, "Automatic", NOT_INTERACTIVE, null

[code].....

View 1 Replies

Create A Windows Installer Package In Program Using Tools From Microsoft?

Sep 17, 2009

I want to create a windows installer package using visual studio. It is my understanding that there was a simple way to do this in vb6, you could add an installer like you can add a new form.

How can I do this in vb.net? I downloaded and installed the Windows SDK from [url]... because it said somewhere that it could create installer packages and had tools to do so for .net

View 5 Replies

How To Create Windows Installer That Will Include Application And Merge Module

Aug 2, 2010

how to create windows installer that will include my application and merge module? I'm using VB .net Visual Studio 2005. I can create a windows installer for merge module and public my application, but I can not have both of them in one setup file.

View 1 Replies

Using Visual Studio Installer For Deploying Windows Forms Project?

Feb 1, 2011

I'm trying to build a setup program using the built-in Visual Studio Installer. I'm using VS 2010 and working on VB.NET.For the most basic kind of program, I have an EXE file which works on a XML file (the XML file is treated like a database). So on a Windows 7 platform with UAC enabled, the best deployment is to install the EXE file in the Program Files folder, and the XML file in the application data folder, for security purposes of Windows. (Windows, now, does not allow creating/writing files inside the Program Files folder unless your application is running with administrative privileges).

So I have added VS Installer to my current project and have opened its File System Editor. So to create the above layout, I've added Primary Output to the Application Folder. Then I've added its shortcut to the User Desktop.Now I need to place my XML file to the application data folder. VS Installer gives the option of User's Application Data Folder, which is the %appdata% folder in the environment table. I need to access the All Users' Application Data Folder.

1) How do I access the All Users' Application Data Folder over here?

2) I tried using the User's Application Data Folder. It doesn't work. It doesn't create any folder in the %appdata% (e.g. C:UsersFarazAppDataRoaming). I tried to play around with various properties, like AlwaysCreate which is supposed to create a folder obligatorily. It doesn't create anything.

View 5 Replies

How To Create Initial Installer And Upgrade Installer?

Aug 12, 2011

I'm currently developing an application for a POS Terminal using VB.net. Our project is approaching the last stage of development and I've been tasked to create 2 installers. 1 for Initial Installation, and the other for upgrade installation.

The project is composed of several elements. These are:

1. The application executable

2. Common DLLs that we developed

3. some resources (.resx and XML)

The requirement for the upgrade installer is that only those files with modification should be installed. (i.e. if only the xml or resx files are modified those are the only items that will be reinstalled, since the size of the upgrade installer is a consideration so we cannot reinstall everything).

I'm using Visual Studio 2005 for my deployment project but I'm a bit confused about how to set the properties of each file in such a way that during the upgrade, only the files that were modified would be updated and the rest of the files will not be removed since I'm setting RemovePreviousVersion property to True. I have a hunch that I need to do something with the custom action but I haven't been able to figure it out. The upgrade installer setup is almost the same as the initial installer except that all files are excluded.I tried to acquire a copy of Phil Wilson's book (The definitive guide to Windows Installer) but its not available in our local bookstore and it would take too long to order it.

Basically while tinkering with the settings/properties there are instances where the dll was not updated and there are also times when the application exe was removed.

I already verified that the Product code is the same for both installers and that I'm sure that the version number is being incremented for each upgrade.

If I will be redoing both installers from scratch, how should I go about it?

I'm also confused about the Condition property and the transitive property.

View 6 Replies

VB2010: Visual Studio Installer Add Other Installer?

Jul 19, 2011

Triying to use the built in Visual Studio 2010 to install a couple of files and after that is done to run another installer package (3rd Party Installation Wizard).

View 1 Replies

Include Crystal Reports Assembly (crystaldecisions.reportappserver.commonobjectmodel Ver 13.0.2000.0) Into Windows Installer?

Sep 21, 2011

I have built a project using VS 2010 and I have 2 reports I am creating within the project. While in VS2010, I can debug the program and the reports work perfectly. Now I have come to the point where I want to publish my project and install it on a machine that my program will be used on. I tried 'Publishing' my project and running the 'Setup' file on the other computer and I get the following error: Unable to install or run the application. The application requires

that assembly CrystalDecisions.ReportAppServer.CommonObjectModel
Version 13.0.2000.0 be installed in the Global Assembly Cache (GAC)
first. Please Contact your System Administrator.

Doing some research, I have found out that you can manually change the GAC or have Windows Installer fix it for you. To be honest, I don't know where the GAC is or how to modify it. My ideal solution would be to figure out how to setup Windows Installer to fix the GAC and configure Crystal reports however to get my project to run on a basic machine. setup Windows Installer to install the appropriate Crystal Reports Engine so my project will work??

View 2 Replies

Collapse Panel Or Group Box In A Windows Form?

Sep 29, 2011

May I know how can I collapse panel or group box in a windows form? I just want to put my datagridview in the panel or group box and collapse the panel..

View 2 Replies

Different Detail Line In Windows Report Per Group?

Sep 13, 2011

How can I make a report that contains for every record key 3 different layouts for the detail lines

e.g. title activity
Local organization
Loc. Budget Overhead
Accepted Date
Date req.
Date act.

[Code]...

View 1 Replies

DWM Flip3d Policy TopMost?

Oct 23, 2009

I just read a recent article here at the code guru about the flip-3d feature available on Vista and Windows 7.It allows, you to place an application above, or below the windows being flipped.

Here is a VB example of that code really neat code.

Code:
Const DWMWA_FLIP3D_POLICY As Int32 = 8
Const DWMWA_EXCLUDE_NONE As Int32 = 0
Const DWMWA_EXCLUDE_BELOW As Int32 = 1
Const DWMWA_EXCLUDE_ABOVE As Int32 = 2

[Code]...

View 4 Replies

Referencing DLLS In The GAC And Policy Files?

Nov 11, 2010

I have a project/app released which references a dll from the GAC folder. The project is looking for version 1.0 of the referenced dll.

I want to release version 2 of the dll without having to re-release the app and have all users re-install.

I had thought if i deployed a policy with the new dll which redirected calls for the dll to the new version this would be ok. However I think I am missing something. IT seems the redirect is not working as when I test on a users machine, give them the version 2 dll and the policy dll but take away the version 1.0 the app fails. It seem calls to the missing dll are not redirected by the policy dll to version 2.

Policy config which is used to create the policy.1.1.CorpReportsClassLibrary.dll
is as below.


<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

[Code]....

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved