How to create DPInst.exe file?
Is there any simple way to create a DPInst.exe file? I want to create a driver installation with my software setup. I have a driver folder containing:
- Some folders containing .dll file
See also questions close to this topic
Windows - Check if computer is locked/logged out before running tests
I have a suite of UI tests that I run locally/remotely depending on the situation. Occasionally, the remote computers are automatically restarted whenever there is an important update to apply. This causes all the tests to time out because the remote computers they are running on are locked out and no longer have access to the GUI.
I am wondering how I can do a quick check to see if the computer is locked or not, that way I can fail the tests quickly and log that they are offline.
I found this solution online but it seems more catered to development and not testing.
Install Fusioninventory with .bat, with GPO Policy script
Good morning, someone could help me, create a GPO to run a .bat running an .exe with installation commands, but I have the problem that the policy of the company, prevents it from running .exe without administrator permissions, so Even if I apply the GPO successfully, the .exe is not executed and the installation I want is not done. the GPo replicates in other GPO servers and is for many desktop.
SPANISH: Buenos dias, alguien me podria ayudar, cree una GPO para ejecutar un .bat que ejecuta un .exe con comandos de instalación, pero tengo el problema que la politica de la empresa, evita que se ejecuten .exe sin permisos administrador, por lo cual , aunque aplique la GPO exitosamente, el .exe no se ejecuta y no se hace la instalación que quiero.
\MTAD300\Util\Finventory\fusioninventory-agent_windows-x64_2.4.2.exe /debug=1 /acceptlicense /server='https://ayuda.servidor.com/plugins/fusioninventory' /delaytime=60 /execmode=service /add-firewall-exception /installtasks=full /runnow /S
VBA Code using Windows API for colorising Textbox selection
Hello VBA & Windows API experts ! I have the following code which is supposed to set the color of the current selected text in a rich text Textbox, but it works only partially. For example, it puts the whole text in Blue instead of just the selection. Can anyone spot where the problem can be ? I am using VBA 7 - 64 bits - Windows 10
Private Sub cmdButton_Click() 'Selected Text in Blue Dim lngHandle As Long lngHandle = fhWnd(Me.txtITMrichtxt) RTBSetTextColor lngHandle, vbBlue End Sub
Option explicit Public Enum ATTDEFINI ATTUNDEF = -3 ATTDEFAULT = -2 End Enum Private Type CHARFORMAT2 cbSize As Long dwMask As Long dwEffects As Long yHeight As Long yOffset As Long crTextColor As OLE_COLOR bCharSet As Byte bPitchAndFamily As Byte szFaceName As String * LF_FACESIZE wWeight As Integer sSpacing As Integer crBackColor As OLE_COLOR lcid As Long dwReserved As Long sStyle As Integer wKerning As Integer bUnderLineType As Byte bAnimation As Byte bRevAuthor As Byte bReserved1 As Byte End Type Public Enum RTBC_FLAGS 'CharFormat (SCF_) flags for EM_SETCHARFORMAT message. RTBC_DEFAULT = 0 RTBC_SELECTION = 1 RTBC_WORD = 2 'Combine with RTBC_SELECTION! RTBC_ALL = 4 End Enum Private Const WM_USER As Long = &H400 Private Const EM_SETCHARFORMAT = WM_USER + 68 Private Const CFM_COLOR As Long = &H40000000 '<-> Membre de la structure CHARFORMAT2 ou Attribut de dwEffects Private Const CFE_AUTOCOLOR = CFM_COLOR Declare PtrSafe Function apiGetFocus Lib "user32" Alias "GetFocus" () As LongPtr Declare PtrSafe Function SendMessageWLng Lib "user32" Alias "SendMessageW" (ByVal hwnd As LongPtr, ByVal wMsg As Long, ByVal wParam As LongPtr, ByVal lParam As Any) As LongPtr Function fhWnd(iaControl As Control) As LongPtr On Error Resume Next iaControl.SetFocus If Err Then fhWnd = 0 Else fhWnd = apiGetFocus End If On Error GoTo 0 End Function Public Sub RTBSetTextColor(ByVal ilngHWND As LongPtr, Optional ByVal ilngTextColor As OLE_COLOR = -1, _ Optional ByVal Scope As RTBC_FLAGS = RTBC_SELECTION) Dim cf2Colors As CHARFORMAT2 With cf2Colors .cbSize = LenB(cf2Colors) .dwMask = CFM_COLOR If ilngTextColor = ATTDEFAULT Then .dwEffects = CFE_AUTOCOLOR Else .dwEffects = 0 .crTextColor = ilngTextColor End If End With SendMessageWLng ilngHWND, EM_SETCHARFORMAT, Scope, VarPtr(cf2Colors) End Sub
Delete the driver software for this device
- I have a problem with a driver that can not be uninstalled. - This driver prevents me from installing a new program and it shows me an installation error screen. - Remove the driver from the device manager without checking the check box (it does not appear), but when the PC is restarted the driver is automatically installed again. - Months ago I had done the same procedure, but by checking the check box. And everything worked fine. - The "Delete the driver software for this device" check box is no longer displayed. How do I restore this option? OS windows 7
How to run Ndis 6.5 LWF Logo tests for Win 10 1809?
I have Ndis 6.8 LWF driver based product and I'd like to check if it is able to pass NDIS LWF Logo tests. I installed HLK for Windows 10 1809. After creation of new project I selected software device (mydriver.sys). It creates "group N" in group column and on right-click I see "Device feature list" containing "Filter.Driver.Network.LWF". When moved to step Tests I don't see LWF specific tests but see only two tests: "Hypervisor Code Integrity Readiness" Test and "TDI filters and LSPs are not allowed". Questions: Why my list does not contain Filter.Driver.Network.LWF.Base and Filter.Driver.Network.LWF.MTUSize tests ? Need I install older Windows 8 and HCK and do NDIS LWF 6.5 Logo tests on older environment ? Does not exist "NDIS LWF 6.8 Logo tests" ? so is "NDIS LWF 6.5 Logo tests" last one ?
Thank you ! Peter
Reading raw data from jack using python
I need to get value from the blue jack on my motherboard using python as a raw data at the moment of calling function. Which libraries I need and how to use them for this purpose?
I should be able to read right and left channels values separately and use this data for real-time use (kind of low-bandwidth data transfer).
The code looks like this:
def read_data(): return ["unknown value", "unknown value"] while 1: data = read_data() print "Jack values are: " + data + ", " + data