🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.tools
Article #91

Problem with CreateProgmanItem in Setup Toolkit

#91
From: Gene Toye
Date: Tue, 04 Aug 1992 19:19
41 lines
2104 bytes
I am using the Microsoft Setup Toolkit to develop a new installation
procedure for our Windows 3270 product.  I have run into a problem 
creating the program manager group.  First time the install is run, no
problems.  The second time, each icon is added again.  I am using the
cmoOverwrite option to CreateProgmanItem with Windows 3.1.  According
to the manual (page 59), this should cause program manager to replace
the icons, not duplicate them.  This behavior can be reproduced with the
simple setup program:


'**************************************************************************

'$INCLUDE 'setupapi.inc'
'$INCLUDE 'msdetect.inc'

INIT:

'* Create program manager group
    CreateProgmanGroup "Test", "", cmoNone
    ShowProgmanGroup "Test", 1, cmoNone
    CreateProgmanItem "Test", "Test", "TEST.EXE", ",,,,", cmoOverwrite
    
QUIT:
    end
    
Run this twice and the Test icon will be duplicated in the Test group 
instead of being overwritten the second time.

Has anybody else ran into this problem?  If so, is there a workaround?

Since there is no way to check if the items exist or to delete the group
from the setup program, there does not seem to be a way around this
other than writing a C function to perform the DDE conversation with
program manager to delete the group and calling that C function from
the setup program.
-- 
Gene Toye, Software Engineer                               gtoye@hp835.mitek.com
OpenConnect Systems, 2033 Chennault Drive, Carrollton, TX 75006
214/308-0454
DISCLAIMER: My employer had no idea I was going to say that.
Technical Details
Message-ID: <gtoye.712955940@hp835>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!convex!news.oc.com!hp835!gtoye

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.tools
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!convex!news.oc.com!hp835!gtoye
From: gtoye@hp835.mitek.com (Gene Toye)
Subject: Problem with CreateProgmanItem in Setup Toolkit
Message-ID: <gtoye.712955940@hp835>
Summary: Problem with CreateProgmanItem in MS Setup Toolkit
Keywords: MSSETUP 
Sender: usenet@ra.oc.com
Organization: OpenConnect Systems, Dallas, TX
Date: Tue, 4 Aug 1992 19:19:00 GMT
Lines: 41